Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
aea6134a
Commit
aea6134a
authored
Jan 16, 2010
by
Ian Lynagh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a layout test
parent
cec3a49f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
1 deletion
+31
-1
testsuite/tests/ghc-regress/layout/Makefile
testsuite/tests/ghc-regress/layout/Makefile
+1
-1
testsuite/tests/ghc-regress/layout/all.T
testsuite/tests/ghc-regress/layout/all.T
+6
-0
testsuite/tests/ghc-regress/layout/layout008.hs
testsuite/tests/ghc-regress/layout/layout008.hs
+22
-0
testsuite/tests/ghc-regress/layout/layout008.stdout
testsuite/tests/ghc-regress/layout/layout008.stdout
+2
-0
No files found.
testsuite/tests/ghc-regress/layout/Makefile
View file @
aea6134a
...
...
@@ -2,7 +2,7 @@ TOP=../../..
include
$(TOP)/mk/boilerplate.mk
include
$(TOP)/mk/test.mk
layout001 layout002 layout003 layout004 layout005 layout006 layout007
:
%:
layout001 layout002 layout003 layout004 layout005 layout006 layout007
layout008
:
%:
$(RM)
$*
.hi
$*
.o
echo
Running with
-XNoAlternativeLayoutRule
-
"
$(TEST_HC)
"
-v0
-XNoAlternativeLayoutRule
-c
$*
.hs 2>&1
...
...
testsuite/tests/ghc-regress/layout/all.T
View file @
aea6134a
...
...
@@ -41,3 +41,9 @@ test('layout007',
run_command
,
['
$MAKE -s --no-print-directory layout007
'])
test
('
layout008
',
[
extra_clean
(['
layout008.hi
',
'
layout008.o
']),
only_compiler_types
(['
ghc
'])],
run_command
,
['
$MAKE -s --no-print-directory layout008
'])
testsuite/tests/ghc-regress/layout/layout008.hs
0 → 100644
View file @
aea6134a
{-# LANGUAGE RecursiveDo, DoRec #-}
{-# OPTIONS_GHC -fno-warn-deprecated-flags #-}
module
M
where
-- do, mdo and rec should all open layouts
f
::
IO
()
f
=
do
print
'a'
print
'b'
g
::
IO
()
g
=
mdo
print
'a'
print
'b'
h
::
IO
()
h
=
do
print
'a'
rec
print
'b'
print
'c'
print
'd'
testsuite/tests/ghc-regress/layout/layout008.stdout
0 → 100644
View file @
aea6134a
Running with -XNoAlternativeLayoutRule
Running with -XAlternativeLayoutRule
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment