diff options
Diffstat (limited to 'testsuite/tests/cps/cps004.cmm')
-rw-r--r-- | testsuite/tests/cps/cps004.cmm | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/tests/cps/cps004.cmm b/testsuite/tests/cps/cps004.cmm new file mode 100644 index 0000000000..e6079a0464 --- /dev/null +++ b/testsuite/tests/cps/cps004.cmm @@ -0,0 +1,17 @@ +// Test basic function parameters and return values + +foo2 (bits16 a, bits16 b, "ptr" bits16 c) { + bits32 x, y; + x = R1; + (y) = foreign "C--" bar(x) "safe"; + goto L; + L: + foreign "C--" baz(x) "safe"; + //jump 12; + goto M; + M: + return (12); + //goto L; + //goto L; +} + |