Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,273
Issues
4,273
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
413
Merge Requests
413
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
0d312816
Commit
0d312816
authored
Jul 07, 2008
by
Simon Peyton Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test for Trac
#2386
parent
fdbc137b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
35 additions
and
0 deletions
+35
-0
testsuite/tests/ghc-regress/th/Makefile
testsuite/tests/ghc-regress/th/Makefile
+8
-0
testsuite/tests/ghc-regress/th/T2386.hs
testsuite/tests/ghc-regress/th/T2386.hs
+9
-0
testsuite/tests/ghc-regress/th/T2386.stdout
testsuite/tests/ghc-regress/th/T2386.stdout
+8
-0
testsuite/tests/ghc-regress/th/T2386_Lib.hs
testsuite/tests/ghc-regress/th/T2386_Lib.hs
+7
-0
testsuite/tests/ghc-regress/th/all.T
testsuite/tests/ghc-regress/th/all.T
+3
-0
No files found.
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
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