diff options
Diffstat (limited to 'testsuite/tests/simplCore/should_run/T16893/T16893.hs')
-rw-r--r-- | testsuite/tests/simplCore/should_run/T16893/T16893.hs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuite/tests/simplCore/should_run/T16893/T16893.hs b/testsuite/tests/simplCore/should_run/T16893/T16893.hs new file mode 100644 index 0000000000..5dd8fdf568 --- /dev/null +++ b/testsuite/tests/simplCore/should_run/T16893/T16893.hs @@ -0,0 +1,21 @@ +{-# LANGUAGE DataKinds #-} + +module Main (main) where + +import Complex + +badComplex :: Complex 'OpenType +badComplex = + Complex + { complexInner = + OpenComplex + { openComplexSource = undefined + } + } + +segFaultTrigger :: IO () +segFaultTrigger = + closeComplex badComplex `seq` pure () + +main :: IO () +main = segFaultTrigger |