summaryrefslogtreecommitdiff
path: root/testsuite/tests/concurrent/should_run/conc021.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/concurrent/should_run/conc021.hs')
-rw-r--r--testsuite/tests/concurrent/should_run/conc021.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/concurrent/should_run/conc021.hs b/testsuite/tests/concurrent/should_run/conc021.hs
new file mode 100644
index 0000000000..c07c48af35
--- /dev/null
+++ b/testsuite/tests/concurrent/should_run/conc021.hs
@@ -0,0 +1,11 @@
+{-# LANGUAGE ForeignFunctionInterface #-}
+module Main where
+
+-- !!! test for uncaught exception
+
+foreign export ccall foo :: Int -> IO Int
+foreign import ccall safe "foo" foo_imported :: Int -> IO Int
+
+foo n = error "wurble"
+
+main = foo_imported 3