Skip to content
GitLab
Menu
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
1f170c8f
Commit
1f170c8f
authored
Oct 13, 2008
by
Simon Marlow
Browse files
add test for
#2685
parent
3ab6cf6c
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/th/T2685.hs
0 → 100644
View file @
1f170c8f
{-# LANGUAGE TemplateHaskell #-}
module
T2685
where
import
T2685a
$
(
th
)
testsuite/tests/ghc-regress/th/T2685a.hs
0 → 100644
View file @
1f170c8f
{-# LANGUAGE TemplateHaskell #-}
module
T2685a
(
th
)
where
import
Language.Haskell.TH
newtype
NT
=
C
(
()
->
()
)
th
::
Q
[
Dec
]
th
=
[
d
|
foo = C undefined
|]
testsuite/tests/ghc-regress/th/all.T
View file @
1f170c8f
...
...
@@ -120,3 +120,5 @@ test('T2386', extra_clean(['T2386_Lib.hi', 'T2386_Lib.o']),
run_command
,
['
$MAKE -s --no-print-directory T2386
']
)
test
('
TH_emptycase
',
exit_code
(
1
),
compile_and_run
,
[''])
test
('
T2685
',
normal
,
multimod_compile
,
['
T2685
','
-v0
'])
Write
Preview
Supports
Markdown
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