Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
127d06bc
Commit
127d06bc
authored
Aug 04, 2007
by
simonpj
Browse files
Test for Trac #1037
parent
08079dc4
Changes
3
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/ccall/should_fail/all.T
View file @
127d06bc
...
...
@@ -7,4 +7,4 @@ setTestOpts(f)
# test('cc002', normal, compile_fail, [''])
test
('
cc005
',
only_compiler_types
(['
ghc
']),
compile_fail
,
[''])
test
('
ccfail001
',
only_compiler_types
(['
ghc
']),
compile_fail
,
[''])
testsuite/tests/ghc-regress/ccall/should_fail/ccfail001.hs
0 → 100644
View file @
127d06bc
{-# OPTIONS -fffi -fglasgow-exts #-}
-- Trac #1037
module
Foo
where
import
GHC.Prim
foreign
import
ccall
foo
::
Int
->
State
#
RealWorld
testsuite/tests/ghc-regress/ccall/should_fail/ccfail001.stderr
0 → 100644
View file @
127d06bc
ccfail001.hs:9:0:
Unacceptable result type in foreign declaration: State# RealWorld
When checking declaration:
foreign import ccall safe "static &foo" foo
:: Int -> State# RealWorld
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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