Commit adf6cdfe authored by Simon Peyton Jones's avatar Simon Peyton Jones

Add a test directory for ext-core, and test Trac #7239

We have basically no tests for External Core, which needs love.
parent 261e91ed
TOP=../..
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk
# T5881 needs a script because it goes wrong only when
# the modules are compiled separately, not with --make
T5881:
$(RM) -f T5881.hi T5881.o T5881a.hi T5881a.o
'$(TEST_HC)' $(TEST_HC_OPTS) -c T5881a.hs
'$(TEST_HC)' $(TEST_HC_OPTS) -c T5881.hs
# T6025 is like T5881; needs separate compile
T6025:
$(RM) -f T6025.hi T6025.o T6025a.hi T6025a.o
'$(TEST_HC)' $(TEST_HC_OPTS) -c T6025a.hs
'$(TEST_HC)' $(TEST_HC_OPTS) -c T6025.hs
# T6054 is like T5881; needs separate compile
# The second compile fails, and should do so, hence leading "-"
T6054:
$(RM) -f T6054.hi T6054.o T6054a.hi T6054a.o
'$(TEST_HC)' $(TEST_HC_OPTS) -c T6054a.hs
-'$(TEST_HC)' $(TEST_HC_OPTS) -c T6054.hs
T7022:
$(RM) -f T7022.hi T7022.o T7022a.hi T7022a.o T7022b.hi T7022b.o
'$(TEST_HC)' $(TEST_HC_OPTS) -c T7022a.hs
'$(TEST_HC)' $(TEST_HC_OPTS) -c T7022b.hs -v0
-'$(TEST_HC)' $(TEST_HC_OPTS) -c -v0 T7022.hs
module Main where
data T a = T a
type C = T Int
type CL = [C]
main = print 1
setTestOpts(only_compiler_types(['ghc']))
test('T7239', normal, compile, ['-fext-core'])
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