Commit 44147c77 authored by Ian Lynagh's avatar Ian Lynagh

Add a test for the difference between the H98 and the alternative layout rules

parent 4b1b243e
TOP=../../..
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk
layout001: %:
$(RM) $*.hi $*.o
echo Running with -XNoAlternativeLayoutRule
-"$(TEST_HC)" -XNoAlternativeLayoutRule -c $*.hs 2>&1
$(RM) $*.hi $*.o
echo Running with -XAlternativeLayoutRule
-"$(TEST_HC)" -XAlternativeLayoutRule -c $*.hs 2>&1
test('layout001',
[extra_clean(['layout001.hi', 'layout001.o']),
only_compiler_types(['ghc'])],
run_command,
['$MAKE -s --no-print-directory layout001'])
module M where
f = case () of
() -> ()
where x = x
Running with -XNoAlternativeLayoutRule
Running with -XAlternativeLayoutRule
layout001.hs:6:3: parse error on input `where'
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