Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,332
Issues
4,332
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
363
Merge Requests
363
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
44147c77
Commit
44147c77
authored
Dec 05, 2009
by
Ian Lynagh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a test for the difference between the H98 and the alternative layout rules
parent
4b1b243e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
0 deletions
+29
-0
testsuite/tests/ghc-regress/layout/Makefile
testsuite/tests/ghc-regress/layout/Makefile
+12
-0
testsuite/tests/ghc-regress/layout/all.T
testsuite/tests/ghc-regress/layout/all.T
+7
-0
testsuite/tests/ghc-regress/layout/layout001.hs
testsuite/tests/ghc-regress/layout/layout001.hs
+6
-0
testsuite/tests/ghc-regress/layout/layout001.stdout
testsuite/tests/ghc-regress/layout/layout001.stdout
+4
-0
No files found.
testsuite/tests/ghc-regress/layout/Makefile
0 → 100644
View file @
44147c77
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
testsuite/tests/ghc-regress/layout/all.T
0 → 100644
View file @
44147c77
test
('
layout001
',
[
extra_clean
(['
layout001.hi
',
'
layout001.o
']),
only_compiler_types
(['
ghc
'])],
run_command
,
['
$MAKE -s --no-print-directory layout001
'])
testsuite/tests/ghc-regress/layout/layout001.hs
0 → 100644
View file @
44147c77
module
M
where
f
=
case
()
of
()
->
()
where
x
=
x
testsuite/tests/ghc-regress/layout/layout001.stdout
0 → 100644
View file @
44147c77
Running with -XNoAlternativeLayoutRule
Running with -XAlternativeLayoutRule
layout001.hs:6:3: parse error on input `where'
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