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
0d312816
Commit
0d312816
authored
Jul 07, 2008
by
simonpj
Browse files
Test for Trac
#2386
parent
fdbc137b
Changes
5
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/th/Makefile
View file @
0d312816
TOP
=
../../..
include
$(TOP)/mk/boilerplate.mk
include
$(TOP)/mk/test.mk
# Trac 2386 requires batch-compile not --make
# Very important: without -O
T2386
:
$(TEST_HC)
-c
T2386_Lib.hs
-fforce-recomp
$(TEST_HC)
-c
T2386.hs
-fforce-recomp
\ No newline at end of file
testsuite/tests/ghc-regress/th/T2386.hs
0 → 100644
View file @
0d312816
{-# LANGUAGE TemplateHaskell #-}
-- Test Trac #2386
module
T2386
where
import
T2386_Lib
foo
=
$
(
makeOne
)
testsuite/tests/ghc-regress/th/T2386.stdout
0 → 100644
View file @
0d312816
Loading package ghc-prim ... linking ... done.
Loading package integer ... linking ... done.
Loading package base ... linking ... done.
Loading package array-0.1 ... linking ... done.
Loading package containers-0.1 ... linking ... done.
Loading package packedstring-0.1 ... linking ... done.
Loading package pretty-1.0 ... linking ... done.
Loading package template-haskell ... linking ... done.
testsuite/tests/ghc-regress/th/T2386_Lib.hs
0 → 100644
View file @
0d312816
{-# LANGUAGE TemplateHaskell #-}
module
T2386_Lib
(
ExportedAbstract
,
makeOne
)
where
data
ExportedAbstract
=
Yay
String
|
NonYay
Bool
makeOne
=
[
|
Yay
"Yep"
|
]
testsuite/tests/ghc-regress/th/all.T
View file @
0d312816
...
...
@@ -102,3 +102,6 @@ test('TH_ghci1', normal, ghci_script, ['TH_ghci1.script'])
test
('
TH_scope
',
normal
,
compile
,
[''])
test
('
T2386
',
extra_clean
(['
T2386_Lib.hi
',
'
T2386_Lib.o
']),
run_command
,
['
$MAKE -s --no-print-directory T2386
']
)
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