summaryrefslogtreecommitdiff
path: root/testsuite/tests/cps/cps021.cmm
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/cps/cps021.cmm')
-rw-r--r--testsuite/tests/cps/cps021.cmm11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/cps/cps021.cmm b/testsuite/tests/cps/cps021.cmm
new file mode 100644
index 0000000000..fa7e809ee0
--- /dev/null
+++ b/testsuite/tests/cps/cps021.cmm
@@ -0,0 +1,11 @@
+// Verify jumping to the begining of the current continuation
+// is done with a branch and not a jump
+
+foo() {
+ bits32 x, y, z;
+ x = x;
+ (x) = foreign "C--" bar() "safe";
+L:
+ z = z;
+ goto L;
+}