20 lines
291 B
C
20 lines
291 B
C
|
/* This file is linked into the runtime for the sole purpose
|
||
|
* of testing FFI code. */
|
||
|
|
||
|
void ffi_test_0(void)
|
||
|
{
|
||
|
printf("ffi_test_0()\n");
|
||
|
}
|
||
|
|
||
|
int ffi_test_1(void)
|
||
|
{
|
||
|
printf("ffi_test_1()\n");
|
||
|
return 3;
|
||
|
}
|
||
|
|
||
|
int ffi_test_2(int x, int y)
|
||
|
{
|
||
|
printf("ffi_test_2(%d,%d)\n",x,y);
|
||
|
return x + y;
|
||
|
}
|