diff options
| author | Uneven Prankster <unevenprankster@protonmail.com> | 2023-07-17 01:34:34 -0300 |
|---|---|---|
| committer | Uneven Prankster <unevenprankster@protonmail.com> | 2023-07-17 01:34:34 -0300 |
| commit | 88d82c6eaee88398af1de57cddca692a1f74b087 (patch) | |
| tree | df492c2002a1820959703f4f481172cceafeb0a1 /tinycc/tests/tests2/120_alias.c | |
| parent | 111c133b939c15c57c90cd474d55e84928c6307a (diff) | |
Cleanup feels good! Big work coming up this week.
Diffstat (limited to 'tinycc/tests/tests2/120_alias.c')
| -rw-r--r-- | tinycc/tests/tests2/120_alias.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/tinycc/tests/tests2/120_alias.c b/tinycc/tests/tests2/120_alias.c deleted file mode 100644 index 5bead0f..0000000 --- a/tinycc/tests/tests2/120_alias.c +++ /dev/null @@ -1,29 +0,0 @@ -/* Check semantics of various constructs to generate renamed symbols. */ -extern int printf (const char *, ...); -void target(void); -void target(void) { - printf("in target function\n"); -} - -void alias_for_target(void) __attribute__((alias("target"))); -#ifdef __leading_underscore -void asm_for_target(void) __asm__("_target"); -#else -void asm_for_target(void) __asm__("target"); -#endif - -/* This is not supposed to compile, alias targets must be defined in the - same unit. In TCC they even must be defined before the reference -void alias_for_undef(void) __attribute__((alias("undefined"))); -*/ - -extern void inunit2(void); - -int main(void) -{ - target(); - alias_for_target(); - asm_for_target(); - inunit2(); - return 0; -} |
