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/bug.c | |
| parent | 111c133b939c15c57c90cd474d55e84928c6307a (diff) | |
Cleanup feels good! Big work coming up this week.
Diffstat (limited to 'tinycc/tests/bug.c')
| -rw-r--r-- | tinycc/tests/bug.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/tinycc/tests/bug.c b/tinycc/tests/bug.c deleted file mode 100644 index b0bc2d5..0000000 --- a/tinycc/tests/bug.c +++ /dev/null @@ -1,35 +0,0 @@ -#include <stdio.h> -#include <stdarg.h> - -int compile_errors(void) -{ -#if TEST == 1 - { - /* Not constant */ - static int i = (&"Foobar"[1] - &"Foobar"[0]); - } -#endif -#if TEST == 2 - { - /* Not constant */ - struct{int c;}v; - static long i=((char*)&(v.c)-(char*)&v); - } -#endif -#if TEST == 3 - { - /* Not constant */ - static const short ar[] = { &&l1 - &&l1, &&l2 - &&l1 }; - void *p = &&l1 + ar[0]; - goto *p; - l1: return 1; - l2: return 2; - } -#endif - return 0; -} - -int -main(void) -{ -} |
