Commit 8f8065db authored by Ian Lynagh's avatar Ian Lynagh

Add a layout test

parent 53bed046
......@@ -2,7 +2,7 @@ TOP=../../..
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk
layout001 layout002 layout003 layout004 layout005 layout006 layout007 layout008: %:
layout001 layout002 layout003 layout004 layout005 layout006 layout007 layout008 layout009: %:
$(RM) $*.hi $*.o
echo Running with -XNoAlternativeLayoutRule
-"$(TEST_HC)" -v0 -XNoAlternativeLayoutRule -c $*.hs 2>&1
......
......@@ -47,3 +47,9 @@ test('layout008',
run_command,
['$MAKE -s --no-print-directory layout008'])
test('layout009',
[extra_clean(['layout009.hi', 'layout009.o']),
only_compiler_types(['ghc'])],
run_command,
['$MAKE -s --no-print-directory layout009'])
module M where
f :: Char
f = let {x = 'a'} in x
Running with -XNoAlternativeLayoutRule
Running with -XAlternativeLayoutRule
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