Commit d110b0e3 authored by Ian Lynagh's avatar Ian Lynagh

Add another layout test

parent 44147c77
......@@ -2,7 +2,7 @@ TOP=../../..
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk
layout001: %:
layout001 layout002: %:
$(RM) $*.hi $*.o
echo Running with -XNoAlternativeLayoutRule
-"$(TEST_HC)" -XNoAlternativeLayoutRule -c $*.hs 2>&1
......
......@@ -5,3 +5,9 @@ test('layout001',
run_command,
['$MAKE -s --no-print-directory layout001'])
test('layout002',
[extra_clean(['layout002.hi', 'layout002.o']),
only_compiler_types(['ghc'])],
run_command,
['$MAKE -s --no-print-directory layout002'])
module M where
f = if True then do undefined else undefined
Running with -XNoAlternativeLayoutRule
Running with -XAlternativeLayoutRule
layout002.hs:4:31: parse error on input `else'
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