diff options
Diffstat (limited to 'testsuite/tests/th/TH_foreignInterruptible.hs')
-rw-r--r-- | testsuite/tests/th/TH_foreignInterruptible.hs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/th/TH_foreignInterruptible.hs b/testsuite/tests/th/TH_foreignInterruptible.hs new file mode 100644 index 0000000000..d025c355a3 --- /dev/null +++ b/testsuite/tests/th/TH_foreignInterruptible.hs @@ -0,0 +1,11 @@ +{-# LANGUAGE TemplateHaskell, ForeignFunctionInterface, InterruptibleFFI #-} + +module TH_foreign where + +import Foreign.Ptr +import Language.Haskell.TH + +$(return [ForeignD (ImportF CCall Interruptible "&" (mkName "foo") (AppT (ConT ''Ptr) (ConT ''())))]) + +-- Should generate the same as this: +foreign import ccall interruptible "&" foo1 :: Ptr () |