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
a1f14d63
Commit
a1f14d63
authored
Jul 08, 2007
by
Ian Lynagh
Browse files
Tests for EmptyDataDecls extension
parent
6242ceda
Changes
6
Hide whitespace changes
Inline
Side-by-side
testsuite/tests/ghc-regress/parser/should_compile/all.T
View file @
a1f14d63
...
...
@@ -54,3 +54,5 @@ test('read044', normal, compile, [''])
test
('
read045
',
normal
,
compile
,
[''])
test
('
read046
',
normal
,
compile
,
[''])
test
('
read047
',
normal
,
compile
,
[''])
test
('
read048
',
normal
,
compile
,
[''])
test
('
read049
',
normal
,
compile
,
[''])
testsuite/tests/ghc-regress/parser/should_compile/read048.hs
0 → 100644
View file @
a1f14d63
{-# OPTIONS_GHC -XEmptyDataDecls #-}
module
Foo
where
data
Foo
testsuite/tests/ghc-regress/parser/should_compile/read049.hs
0 → 100644
View file @
a1f14d63
{-# LANGUAGE EmptyDataDecls #-}
module
Foo
where
data
Foo
testsuite/tests/ghc-regress/parser/should_fail/all.T
View file @
a1f14d63
...
...
@@ -41,3 +41,4 @@ test('read031', normal, compile_fail, [''])
test
('
read032
',
expect_broken
(
314
),
compile_fail
,
['
-cpp
'])
test
('
read033
',
normal
,
compile_fail
,
[''])
test
('
read034
',
normal
,
compile_fail
,
[''])
test
('
read035
',
normal
,
compile_fail
,
[''])
testsuite/tests/ghc-regress/parser/should_fail/read035.hs
0 → 100644
View file @
a1f14d63
module
Foo
where
data
Foo
testsuite/tests/ghc-regress/parser/should_fail/read035.stderr
0 → 100644
View file @
a1f14d63
read035.hs:4:0:
`Foo' has no constructors (-XEmptyDataDecls permits this)
In the data type declaration for `Foo'
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