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
cec3a49f
Commit
cec3a49f
authored
Jan 16, 2010
by
Ian Lynagh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a layout rule test
parent
8f2e6d26
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
3 deletions
+22
-3
testsuite/tests/ghc-regress/layout/Makefile
testsuite/tests/ghc-regress/layout/Makefile
+3
-3
testsuite/tests/ghc-regress/layout/all.T
testsuite/tests/ghc-regress/layout/all.T
+6
-0
testsuite/tests/ghc-regress/layout/layout007.hs
testsuite/tests/ghc-regress/layout/layout007.hs
+11
-0
testsuite/tests/ghc-regress/layout/layout007.stdout
testsuite/tests/ghc-regress/layout/layout007.stdout
+2
-0
No files found.
testsuite/tests/ghc-regress/layout/Makefile
View file @
cec3a49f
...
...
@@ -2,11 +2,11 @@ TOP=../../..
include
$(TOP)/mk/boilerplate.mk
include
$(TOP)/mk/test.mk
layout001 layout002 layout003 layout004 layout005 layout006
:
%:
layout001 layout002 layout003 layout004 layout005 layout006
layout007
:
%:
$(RM)
$*
.hi
$*
.o
echo
Running with
-XNoAlternativeLayoutRule
-
"
$(TEST_HC)
"
-XNoAlternativeLayoutRule
-c
$*
.hs 2>&1
-
"
$(TEST_HC)
"
-
v0
-
XNoAlternativeLayoutRule
-c
$*
.hs 2>&1
$(RM)
$*
.hi
$*
.o
echo
Running with
-XAlternativeLayoutRule
-
"
$(TEST_HC)
"
-XAlternativeLayoutRule
-c
$*
.hs 2>&1
-
"
$(TEST_HC)
"
-
v0
-
XAlternativeLayoutRule
-c
$*
.hs 2>&1
testsuite/tests/ghc-regress/layout/all.T
View file @
cec3a49f
...
...
@@ -35,3 +35,9 @@ test('layout006',
run_command
,
['
$MAKE -s --no-print-directory layout006
'])
test
('
layout007
',
[
extra_clean
(['
layout007.hi
',
'
layout007.o
']),
only_compiler_types
(['
ghc
'])],
run_command
,
['
$MAKE -s --no-print-directory layout007
'])
testsuite/tests/ghc-regress/layout/layout007.hs
0 → 100644
View file @
cec3a49f
{-# LANGUAGE TemplateHaskell #-}
module
M
where
-- The paren here closes the open-splice - it doesn't match an
-- opening paren
f
::
IO
()
f
=
do
print
$
(
[
|
'a'
|
]
)
testsuite/tests/ghc-regress/layout/layout007.stdout
0 → 100644
View file @
cec3a49f
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