Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
f872dca8
Commit
f872dca8
authored
Mar 04, 2007
by
Ian Lynagh
Browse files
Decouple mod158 from mod157 so it works in CLEANUP mode
parent
e5bb47a9
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/module/Makefile
View file @
f872dca8
...
...
@@ -12,3 +12,13 @@ mod146::
@
$(TEST_HC)
-c
Mod145_A.hs
@
$(TEST_HC)
mod146.hs
mod158
::
rm
-f
Mod157_
*
.o
rm
-f
Mod157_
*
.hi
rm
-f
mod158.o mod158.hi mod158
$(TEST_HC)
-c
Mod157_A.hs
$(TEST_HC)
-c
Mod157_B.hs
$(TEST_HC)
-c
Mod157_C.hs
$(TEST_HC)
-c
Mod157_D.hs
$(TEST_HC)
mod158.hs
-o
mod158
testsuite/tests/ghc-regress/module/all.T
View file @
f872dca8
...
...
@@ -206,7 +206,9 @@ test('mod156', normal, compile, [''])
test
('
mod157
',
normal
,
multimod_compile
,
['
mod157
',
'
-v0
'])
clean
(['
Mod157_A.hi
',
'
Mod157_A.o
',
'
Mod157_B.hi
',
'
Mod157_B.o
',
'
Mod157_C.hi
',
'
Mod157_C.o
',
'
Mod157_D.hi
',
'
Mod157_D.o
'])
test
('
mod158
',
normal
,
compile_fail
,
[''])
test
('
mod158
',
compose
(
normal
,
exit_code
(
2
)),
run_command
,
['
$MAKE -s --no-print-directory mod158
'])
clean
(['
Mod157_A.hi
',
'
Mod157_A.o
',
'
Mod157_B.hi
',
'
Mod157_B.o
',
'
Mod157_C.hi
',
'
Mod157_C.o
',
'
Mod157_D.hi
',
'
Mod157_D.o
'])
test
('
mod159
',
normal
,
multimod_compile
,
['
mod159
',
'
-v0
'])
clean
(['
Mod159_A.hi
',
'
Mod159_A.o
',
'
Mod159_B.hi
',
'
Mod159_B.o
',
'
Mod159_C.hi
',
'
Mod159_C.o
',
'
Mod159_D.hi
',
'
Mod159_D.o
'])
...
...
testsuite/tests/ghc-regress/module/mod158.stderr
View file @
f872dca8
mod158.hs:12:4: Not in scope: data constructor `C'
make[1]: *** [mod158] Error 1
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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