aboutsummaryrefslogtreecommitdiff
path: root/tests/i/multifile-extern/program.cps
blob: 7a0cd2d1019536abb0bf345b1e3df9fc51c358c9 (plain)
1
2
3
4
5
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)