summaryrefslogtreecommitdiff
path: root/testsuite/tests/codeGen/should_run/cgrun002.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/codeGen/should_run/cgrun002.hs')
-rw-r--r--testsuite/tests/codeGen/should_run/cgrun002.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/codeGen/should_run/cgrun002.hs b/testsuite/tests/codeGen/should_run/cgrun002.hs
new file mode 100644
index 0000000000..dddaabd66f
--- /dev/null
+++ b/testsuite/tests/codeGen/should_run/cgrun002.hs
@@ -0,0 +1,12 @@
+main = print ((f id2) (10 + thirty_two))
+ where
+ f x = g x
+ where
+ g x = h x
+ where
+ h x = x
+
+ thirty_two :: Int
+ thirty_two = 32
+
+id2 x = x