summaryrefslogtreecommitdiff
path: root/testsuite/tests/parser/should_compile/read039.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/parser/should_compile/read039.hs')
-rw-r--r--testsuite/tests/parser/should_compile/read039.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/tests/parser/should_compile/read039.hs b/testsuite/tests/parser/should_compile/read039.hs
new file mode 100644
index 0000000000..032c64f624
--- /dev/null
+++ b/testsuite/tests/parser/should_compile/read039.hs
@@ -0,0 +1,7 @@
+{-# LANGUAGE ForeignFunctionInterface, CPP #-}
+-- Test the LANGUAGE pragma
+module ShouldCompile where
+
+#if 1
+foreign import ccall "foo" foo :: Int -> IO Int
+#endif