summaryrefslogtreecommitdiff
path: root/testsuite/tests/wasm/should_run/control-flow/src/Closure.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/wasm/should_run/control-flow/src/Closure.hs')
-rw-r--r--testsuite/tests/wasm/should_run/control-flow/src/Closure.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/tests/wasm/should_run/control-flow/src/Closure.hs b/testsuite/tests/wasm/should_run/control-flow/src/Closure.hs
new file mode 100644
index 0000000000..f223086e8b
--- /dev/null
+++ b/testsuite/tests/wasm/should_run/control-flow/src/Closure.hs
@@ -0,0 +1,4 @@
+module Closure where
+
+add :: Int -> [Int] -> [Int]
+add x = map (\n -> n + x)