summaryrefslogtreecommitdiff
path: root/testsuite/tests/gadt
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/gadt')
-rw-r--r--testsuite/tests/gadt/all.T1
-rw-r--r--testsuite/tests/gadt/gadtSyntax002.hs6
2 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/gadt/all.T b/testsuite/tests/gadt/all.T
index 3152f3561b..ce30d570f3 100644
--- a/testsuite/tests/gadt/all.T
+++ b/testsuite/tests/gadt/all.T
@@ -97,6 +97,7 @@ test('T3651', normal, compile_fail, [''])
test('T3638', normal, compile, [''])
test('gadtSyntax001', normal, compile, [''])
+test('gadtSyntax002', normal, compile, [''])
test('gadtSyntaxFail001', normal, compile_fail, [''])
test('gadtSyntaxFail002', normal, compile_fail, [''])
test('gadtSyntaxFail003', normal, compile_fail, [''])
diff --git a/testsuite/tests/gadt/gadtSyntax002.hs b/testsuite/tests/gadt/gadtSyntax002.hs
new file mode 100644
index 0000000000..46ccfb320c
--- /dev/null
+++ b/testsuite/tests/gadt/gadtSyntax002.hs
@@ -0,0 +1,6 @@
+{-# LANGUAGE GADTSyntax #-}
+
+module GADTSyntax002 where
+
+newtype Down a where
+ Down :: { getDown :: a } -> Down a