summaryrefslogtreecommitdiff
path: root/testsuite/tests/cps/cps020.cmm
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/cps/cps020.cmm')
-rw-r--r--testsuite/tests/cps/cps020.cmm15
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/tests/cps/cps020.cmm b/testsuite/tests/cps/cps020.cmm
new file mode 100644
index 0000000000..2dc7131139
--- /dev/null
+++ b/testsuite/tests/cps/cps020.cmm
@@ -0,0 +1,15 @@
+// Test for proc points
+
+foo () {
+ bits32 x, y, z;
+ if (x<3) {
+ y = 1;
+ foreign "C--" bar() "safe";
+ z = 1;
+ } else {
+ y = 2;
+ foreign "C--" baz() "safe";
+ z = 2;
+ }
+ return (x, y, z);
+}