tinycc/tests/asm-c-connect-2.c
Michael Matz 9e0d23cc47 tccasm: Unify C and asm symbol table
This makes the asm symbols use the same members as the C symbols
for global decls, e.g. using the ELF symbol to hold offset and
section.  That allows us to use only one symbol table for C and
asm symbols and to get rid of hacks to synch between them.

We still need some special handling for symbols that come purely
from asm sources.
2017-11-27 04:59:29 +01:00

11 lines
124 B
C

#include <stdio.h>
int x3(void)
{
printf("x3\n");
return 3;
}
void callx4(void);
__asm__("callx4: call x4; ret");