Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
6137c0f3
Commit
6137c0f3
authored
Mar 28, 2012
by
Simon Peyton Jones
Browse files
Test Trac
#5955
parent
9734a93f
Changes
4
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/indexed-types/should_compile/Makefile
View file @
6137c0f3
...
...
@@ -13,3 +13,8 @@ IndTypesPerf:
$(RM)
IndTypesPerfMerge.o IndTypesPerfMerge.hi
'
$(TEST_HC)
'
$(TEST_HC_OPTS)
-O
-c
IndTypesPerfMerge.hs +RTS
-M20M
'
$(TEST_HC)
'
$(TEST_HC_OPTS)
-O
-c
IndTypesPerf.hs +RTS
-M20M
T5955
:
$(RM)
T5955.o T5955.hi T5955a.o T5955a.hi
'
$(TEST_HC)
'
$(TEST_HC_OPTS)
-c
T5955a.hs
'
$(TEST_HC)
'
$(TEST_HC_OPTS)
-c
T5955.hs
testsuite/tests/indexed-types/should_compile/T5955.hs
0 → 100644
View file @
6137c0f3
module
T5955
where
import
T5955a
foo
::
()
foo
=
()
testsuite/tests/indexed-types/should_compile/T5955a.hs
0 → 100644
View file @
6137c0f3
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE TypeFamilies #-}
module
T5955a
where
class
(
Eq
(
Multi
a
))
=>
MultiPrim
a
where
data
Multi
a
instance
MultiPrim
Int
where
newtype
Multi
Int
=
MultiInt
Int
deriving
(
Eq
)
testsuite/tests/indexed-types/should_compile/all.T
View file @
6137c0f3
...
...
@@ -182,3 +182,9 @@ test('ClassEqContext3', normal, compile, [''])
test
('
HO
',
normal
,
compile
,
[''])
# The point about this test is that it compiles the two T5955
# modules *separately*
test
('
T5955
',
extra_clean
(['
T5955.o
',
'
T5955.hi
',
'
T5955a.o
',
'
T5955a.hi
']),
run_command
,
['
$MAKE -s --no-print-directory T5955
'])
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