Commit 7f09f0f9 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Add some hsc2hs tests

parent d79cce0e
TOP=../../..
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk
TESTS = hsc2hs001 hsc2hs002
.PHONY: $(TESTS)
$(TESTS):
'$(HSC2HS)' $@.hsc
'$(TEST_HC)' -c $@.hs
test('hsc2hs001',
extra_clean(['hsc2hs001.hs', 'hsc2hs001_hsc_make.c']),
run_command,
['$MAKE -s --no-print-directory hsc2hs001'])
test('hsc2hs002',
extra_clean(['hsc2hs002.hs', 'hsc2hs002_hsc_make.c']),
run_command,
['$MAKE -s --no-print-directory hsc2hs002'])
module Main (main) where
main :: IO ()
main = print #size int
module Main (main) where
main :: IO ()
main = print #size struct {int ab,cd;}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment