aboutsummaryrefslogtreecommitdiff
path: root/tests/i/multifile-extern/program.cps
diff options
context:
space:
mode:
Diffstat (limited to 'tests/i/multifile-extern/program.cps')
-rw-r--r--tests/i/multifile-extern/program.cps6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/i/multifile-extern/program.cps b/tests/i/multifile-extern/program.cps
new file mode 100644
index 0000000..7a0cd2d
--- /dev/null
+++ b/tests/i/multifile-extern/program.cps
@@ -0,0 +1,6 @@
+// Both files declare the same C function; aliases of int are interchangeable.
+INCLUDE "lib.cps"
+INCLUDE_OBJ "__libc"
+EXTERN "C" EXTERN_FUNCTION abs(C_INT) RETURNS C_INT
+OUTPUT abs((C_INT)-3)
+OUTPUT Twice((C_INT)-4)