summaryrefslogtreecommitdiff
path: root/testsuite/tests/cps/cps019.cmm
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/cps/cps019.cmm')
-rw-r--r--testsuite/tests/cps/cps019.cmm12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/cps/cps019.cmm b/testsuite/tests/cps/cps019.cmm
new file mode 100644
index 0000000000..12c39a98c4
--- /dev/null
+++ b/testsuite/tests/cps/cps019.cmm
@@ -0,0 +1,12 @@
+// Verify block jumping to continuations works right
+
+foo() {
+ bits32 x, y, z;
+ x = x;
+ (x) = foreign "C--" bar() "safe";
+L:
+ y = y;
+ foreign "C--" baz() "safe";
+ if (y) { z = z; goto L; }
+ else { z = z; goto L; }
+}