summaryrefslogtreecommitdiff
path: root/testsuite/tests/cps/cps010.cmm
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/cps/cps010.cmm')
-rw-r--r--testsuite/tests/cps/cps010.cmm9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/tests/cps/cps010.cmm b/testsuite/tests/cps/cps010.cmm
new file mode 100644
index 0000000000..0b0ec9ebc4
--- /dev/null
+++ b/testsuite/tests/cps/cps010.cmm
@@ -0,0 +1,9 @@
+// Test general stack check
+// Note, the GC block shouldn't trigger the stack limit
+
+foo6_gc_slow("ptr" bits32 f, bits32 x) goto GC {
+ return (7);
+GC:
+ foreign "C--" stg_gc_gen() "safe";
+ jump foo6_gc_slow(f, x);
+}