Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
6dee9254
Commit
6dee9254
authored
Aug 03, 2011
by
Simon Peyton Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test Trac
#5362
parent
8632b534
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
0 deletions
+28
-0
testsuite/tests/th/T5362.hs
testsuite/tests/th/T5362.hs
+23
-0
testsuite/tests/th/T5362.stderr
testsuite/tests/th/T5362.stderr
+4
-0
testsuite/tests/th/all.T
testsuite/tests/th/all.T
+1
-0
No files found.
testsuite/tests/th/T5362.hs
0 → 100644
View file @
6dee9254
{-# LANGUAGE TemplateHaskell #-}
module
T5362
()
where
import
System.IO
import
Language.Haskell.TH
$
(
do
fName
<-
newName
"f"
gName
<-
newName
"g"
let
gExp
=
varE
gName
sdf
<-
sigD
fName
[
t
|
()
|]
sdg
<-
sigD
gName
[
t
|
()
|]
fdf
<-
funD
fName
[
clause
[]
(
normalB
[
|
undefined
$
gExp
|
])
[]
]
fdg
<-
funD
gName
[
clause
[]
(
normalB
[
|
undefined
|
])
[]
]
let
ds
=
[
sdf
,
fdf
,
sdg
,
fdg
]
runIO
$
do
{
putStrLn
(
pprint
ds
);
hFlush
stdout
}
return
ds
)
testsuite/tests/th/T5362.stderr
0 → 100644
View file @
6dee9254
f_0 :: GHC.Unit.()
f_0 = GHC.Err.undefined g_1
g_1 :: GHC.Unit.()
g_1 = GHC.Err.undefined
testsuite/tests/th/all.T
View file @
6dee9254
...
...
@@ -183,6 +183,7 @@ test('T5217', normal, compile, ['-v0 -dsuppress-uniques -ddump-splices'])
test
('
T5037
',
normal
,
compile
,
['
-v0
'])
test
('
TH_unboxedSingleton
',
normal
,
compile
,
['
-v0
'])
test
('
T5290
',
normal
,
compile
,
['
-v0 -ddump-splices
'])
test
('
T5362
',
normal
,
compile
,
['
-v0
'])
test
('
TH_unresolvedInfix
',
extra_clean
(['
TH_unresolvedInfix_Lib.hi
',
'
TH_unresolvedInfix_Lib.o
']),
...
...
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