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,333
Issues
4,333
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
368
Merge Requests
368
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
d110b0e3
Commit
d110b0e3
authored
Dec 05, 2009
by
Ian Lynagh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add another layout test
parent
44147c77
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
1 deletion
+16
-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/layout002.hs
testsuite/tests/ghc-regress/layout/layout002.hs
+5
-0
testsuite/tests/ghc-regress/layout/layout002.stdout
testsuite/tests/ghc-regress/layout/layout002.stdout
+4
-0
No files found.
testsuite/tests/ghc-regress/layout/Makefile
View file @
d110b0e3
...
...
@@ -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
...
...
testsuite/tests/ghc-regress/layout/all.T
View file @
d110b0e3
...
...
@@ -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
'])
testsuite/tests/ghc-regress/layout/layout002.hs
0 → 100644
View file @
d110b0e3
module
M
where
f
=
if
True
then
do
undefined
else
undefined
testsuite/tests/ghc-regress/layout/layout002.stdout
0 → 100644
View file @
d110b0e3
Running with -XNoAlternativeLayoutRule
Running with -XAlternativeLayoutRule
layout002.hs:4:31: 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