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
b80cc025
Commit
b80cc025
authored
Oct 05, 2011
by
Ian Lynagh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a test for dynCompileExpr
parent
a40f26b2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
0 deletions
+36
-0
testsuite/tests/ghc-api/dynCompileExpr/Makefile
testsuite/tests/ghc-api/dynCompileExpr/Makefile
+13
-0
testsuite/tests/ghc-api/dynCompileExpr/all.T
testsuite/tests/ghc-api/dynCompileExpr/all.T
+4
-0
testsuite/tests/ghc-api/dynCompileExpr/dynCompileExpr.hs
testsuite/tests/ghc-api/dynCompileExpr/dynCompileExpr.hs
+18
-0
testsuite/tests/ghc-api/dynCompileExpr/dynCompileExpr.stdout
testsuite/tests/ghc-api/dynCompileExpr/dynCompileExpr.stdout
+1
-0
No files found.
testsuite/tests/ghc-api/dynCompileExpr/Makefile
0 → 100644
View file @
b80cc025
TOP
=
../../..
include
$(TOP)/mk/boilerplate.mk
include
$(TOP)/mk/test.mk
clean
:
rm
-f
*
.o
*
.hi
dynCompileExpr
:
clean
'
$(TEST_HC)
'
$(TEST_HC_OPTS)
--make
-v0
-package
ghc dynCompileExpr
./dynCompileExpr
"
`
'
$(TEST_HC)
'
$(TEST_HC_OPTS)
--print-libdir
|
tr
-d
'\r'
`
"
.PHONY
:
clean dynCompileExpr
testsuite/tests/ghc-api/dynCompileExpr/all.T
0 → 100644
View file @
b80cc025
test
('
dynCompileExpr
',
normal
,
run_command
,
['
$MAKE -s --no-print-directory dynCompileExpr
'])
testsuite/tests/ghc-api/dynCompileExpr/dynCompileExpr.hs
0 → 100644
View file @
b80cc025
module
Main
where
import
GHC
import
MonadUtils
import
System.Environment
main
::
IO
()
main
=
do
[
libdir
]
<-
getArgs
runGhc
(
Just
libdir
)
doit
doit
::
Ghc
()
doit
=
do
getSessionDynFlags
>>=
setSessionDynFlags
dyn
<-
dynCompileExpr
"()"
liftIO
$
print
dyn
testsuite/tests/ghc-api/dynCompileExpr/dynCompileExpr.stdout
0 → 100644
View file @
b80cc025
<<()>>
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