Commit a1f14d63 authored by Ian Lynagh's avatar Ian Lynagh
Browse files

Tests for EmptyDataDecls extension

parent 6242ceda
......@@ -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, [''])
{-# OPTIONS_GHC -XEmptyDataDecls #-}
module Foo where
data Foo
{-# LANGUAGE EmptyDataDecls #-}
module Foo where
data Foo
......@@ -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, [''])
read035.hs:4:0:
`Foo' has no constructors (-XEmptyDataDecls permits this)
In the data type declaration for `Foo'
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment