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
d38ad948
Commit
d38ad948
authored
Oct 25, 2005
by
simonmar
Browse files
[project @ 2005-10-25 12:53:59 by simonmar]
add LANGUAGE pragma tests
parent
41749c21
Changes
7
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/parser/should_compile/all.T
View file @
d38ad948
...
...
@@ -45,3 +45,4 @@ test('read034', expect_fail_if_compiler_type('hugs'), compile, [''])
test
('
read036
',
normal
,
compile
,
[''])
test
('
read037
',
normal
,
compile
,
[''])
test
('
read038
',
normal
,
compile
,
[''])
test
('
read039
',
normal
,
compile
,
['
-fno-code
'])
testsuite/tests/ghc-regress/parser/should_compile/read039.hs
0 → 100644
View file @
d38ad948
{-# LANGUAGE ForeignFunctionInterface, CPP #-}
-- Test the LANGUAGE pragma
module
ShouldCompile
where
#
if
1
foreign
import
ccall
"foo"
foo
::
Int
->
IO
Int
#
endif
testsuite/tests/ghc-regress/parser/should_fail/all.T
View file @
d38ad948
...
...
@@ -35,3 +35,5 @@ test('read026', normal, compile_fail, [''])
test
('
read027
',
expect_fail_if_compiler_type
('
ghc
'),
compile_fail
,
[''])
test
('
read028
',
normal
,
compile_fail
,
[''])
test
('
read029
',
normal
,
compile_fail
,
[''])
test
('
read030
',
normal
,
compile_fail
,
[''])
testsuite/tests/ghc-regress/parser/should_fail/read029.hs
0 → 100644
View file @
d38ad948
{-# LANGUAGE wibble wibble wibble #-}
testsuite/tests/ghc-regress/parser/should_fail/read029.stderr
0 → 100644
View file @
d38ad948
read029.hs:1:0: cannot parse LANGUAGE pragma
testsuite/tests/ghc-regress/parser/should_fail/read030.hs
0 → 100644
View file @
d38ad948
{-# LANGUAGE ExtensibleRecords, RestrictedTypeSynonyms, HereDocuments, UnsafeOverlappingInstances, NamedFieldPuns #-}
testsuite/tests/ghc-regress/parser/should_fail/read030.stderr
0 → 100644
View file @
d38ad948
read030.hs:1:0:
unsupported extensions: ExtensibleRecords,RestrictedTypeSynonyms,HereDocuments,UnsafeOverlappingInstances,NamedFieldPuns
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