summaryrefslogtreecommitdiff
path: root/tests/asm-c-connect-2.c
blob: 5dad26ceed8c3f7d73b98d542f5d9f43ea45b9c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdio.h>

int x3(void)
{
    printf("x3\n");
    return 3;
}

/* That callx4 is defined globally (as if ".globl callx4")
   is a TCC extension.  GCC doesn't behave like this.  */
void callx4(void);
__asm__("callx4: call x4; ret");

extern void x5(void);
void callx5_again(void);
void callx5_again(void)
{
    x5();
}