summaryrefslogtreecommitdiff
path: root/compiler/ilxGen/tests/foo.hs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/ilxGen/tests/foo.hs')
-rw-r--r--compiler/ilxGen/tests/foo.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler/ilxGen/tests/foo.hs b/compiler/ilxGen/tests/foo.hs
new file mode 100644
index 0000000000..d66608ba22
--- /dev/null
+++ b/compiler/ilxGen/tests/foo.hs
@@ -0,0 +1,9 @@
+{-# OPTIONS -fglasgow-exts #-}
+module Foo where
+import PrelGHC
+import PrelNum
+import PrelBase
+integer2Intx :: Integer -> Int
+integer2Intx (S# i) = I# i
+integer2Intx (J# s d) = case (integer2Int# s d) of { n# -> I# n# }
+