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
d9544b66
Commit
d9544b66
authored
Dec 05, 2009
by
Ian Lynagh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add another layout test
parent
9fcf729a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
1 deletion
+21
-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/layout005.hs
testsuite/tests/ghc-regress/layout/layout005.hs
+10
-0
testsuite/tests/ghc-regress/layout/layout005.stdout
testsuite/tests/ghc-regress/layout/layout005.stdout
+4
-0
No files found.
testsuite/tests/ghc-regress/layout/Makefile
View file @
d9544b66
...
...
@@ -2,7 +2,7 @@ TOP=../../..
include
$(TOP)/mk/boilerplate.mk
include
$(TOP)/mk/test.mk
layout001 layout002 layout003 layout004
:
%:
layout001 layout002 layout003 layout004
layout005
:
%:
$(RM)
$*
.hi
$*
.o
echo
Running with
-XNoAlternativeLayoutRule
-
"
$(TEST_HC)
"
-XNoAlternativeLayoutRule
-c
$*
.hs 2>&1
...
...
testsuite/tests/ghc-regress/layout/all.T
View file @
d9544b66
...
...
@@ -23,3 +23,9 @@ test('layout004',
run_command
,
['
$MAKE -s --no-print-directory layout004
'])
test
('
layout005
',
[
extra_clean
(['
layout005.hi
',
'
layout005.o
']),
only_compiler_types
(['
ghc
'])],
run_command
,
['
$MAKE -s --no-print-directory layout005
'])
testsuite/tests/ghc-regress/layout/layout005.hs
0 → 100644
View file @
d9544b66
module
M
where
-- GHC's Lexer.x had a piece of code like this
f
=
if
True
then
do
case
()
of
()
->
()
else
()
testsuite/tests/ghc-regress/layout/layout005.stdout
0 → 100644
View file @
d9544b66
Running with -XNoAlternativeLayoutRule
Running with -XAlternativeLayoutRule
layout005.hs:9:13: parse error on input `else'
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