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,323
Issues
4,323
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
376
Merge Requests
376
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
41df824d
Commit
41df824d
authored
Feb 06, 2003
by
simonmar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[project @ 2003-02-06 09:59:34 by simonmar]
Add test for missing rts_mkFunPtr (fails on 5.04.2).
parent
7457641d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
testsuite/tests/ghc-regress/ccall/should_run/all.T
testsuite/tests/ghc-regress/ccall/should_run/all.T
+2
-0
testsuite/tests/ghc-regress/ccall/should_run/ffi010.hs
testsuite/tests/ghc-regress/ccall/should_run/ffi010.hs
+9
-0
No files found.
testsuite/tests/ghc-regress/ccall/should_run/all.T
View file @
41df824d
...
...
@@ -36,3 +36,5 @@ test('ffi008', exit_code(1), compile_and_run, [''])
# doesn't do -ffloat-store and gets different answers when
# optimisation is on.
test
('
ffi009
',
expect_fail_for
(['
optasm
']),
compile_and_run
,
[''])
test
('
ffi010
',
normal
,
compile_and_run
,
[''])
testsuite/tests/ghc-regress/ccall/should_run/ffi010.hs
0 → 100644
View file @
41df824d
import
Foreign
-- !!! GHC 5.04.2 was missing rts_mkFunPtr, which meant that this example
-- !!! didn't link.
foreign
import
ccall
"wrapper"
makeHaskellFun
::
(
FunPtr
a
->
IO
()
)
->
IO
(
FunPtr
(
FunPtr
a
->
IO
()
))
main
=
makeHaskellFun
(
const
(
return
()
))
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