Hackfix and re-enable strtoull and wcstoull, see bug #3798.
[sdcc.git] / sdcc / support / regression / tcc / 120_alias.c
blob5bead0f5aebc46564b2e0b363807901695f8e5d3
1 /* Check semantics of various constructs to generate renamed symbols. */
2 extern int printf (const char *, ...);
3 void target(void);
4 void target(void) {
5 printf("in target function\n");
8 void alias_for_target(void) __attribute__((alias("target")));
9 #ifdef __leading_underscore
10 void asm_for_target(void) __asm__("_target");
11 #else
12 void asm_for_target(void) __asm__("target");
13 #endif
15 /* This is not supposed to compile, alias targets must be defined in the
16 same unit. In TCC they even must be defined before the reference
17 void alias_for_undef(void) __attribute__((alias("undefined")));
20 extern void inunit2(void);
22 int main(void)
24 target();
25 alias_for_target();
26 asm_for_target();
27 inunit2();
28 return 0;