diff options
Diffstat (limited to 'tests/asm-c-connect-1.c')
-rw-r--r-- | tests/asm-c-connect-1.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/tests/asm-c-connect-1.c b/tests/asm-c-connect-1.c index 1849b56..8a28d78 100644 --- a/tests/asm-c-connect-1.c +++ b/tests/asm-c-connect-1.c @@ -8,7 +8,7 @@ static int x1_c(void) { - printf("x1\n"); + printf(" x1"); return 1; } @@ -16,21 +16,30 @@ asm(".text;"_"x1: call "_"x1_c; ret"); void callx4(void); void callx5_again(void); + +void x6() +{ + printf(" x6-1"); +} + int main(int argc, char *argv[]) { + printf("*"); asm("call "_"x1"); asm("call "_"x2"); asm("call "_"x3"); callx4(); asm("call "_"x5"); callx5_again(); + x6(); + printf(" *\n"); return 0; } static int x2(void) { - printf("x2\n"); + printf(" x2"); return 2; } @@ -38,11 +47,11 @@ extern int x3(void); void x4(void) { - printf("x4\n"); + printf(" x4"); } void x5(void); void x5(void) { - printf("x5\n"); + printf(" x5"); } |