Test Trac #8467
authorSimon Peyton Jones <simonpj@microsoft.com>
Thu, 24 Oct 2013 10:17:26 +0000 (11:17 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Thu, 24 Oct 2013 10:17:26 +0000 (11:17 +0100)
testsuite/tests/stranal/should_compile/T8467.hs [new file with mode: 0644]
testsuite/tests/stranal/should_compile/all.T

diff --git a/testsuite/tests/stranal/should_compile/T8467.hs b/testsuite/tests/stranal/should_compile/T8467.hs
new file mode 100644 (file)
index 0000000..86db5e3
--- /dev/null
@@ -0,0 +1,11 @@
+module T8467 where
+
+newtype Void = Void Void
+
+data Decision a = Disproved (a -> Void)
+
+bar :: Int -> Void
+bar = \_ -> undefined
+
+foo :: () -> Decision Int
+foo _ = Disproved (\_ -> undefined)
index 5814f39..9467a7e 100644 (file)
@@ -16,3 +16,4 @@ test('tst', normal, compile, [''])
 test('unu', normal, compile, [''])
 test('newtype', req_profiling, compile, ['-prof -auto-all'])
 test('T1988', normal, compile, [''])
+test('T8467', normal, compile, [''])