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/129_scopes.c | |
| parent | 111c133b939c15c57c90cd474d55e84928c6307a (diff) | |
Cleanup feels good! Big work coming up this week.
Diffstat (limited to 'tinycc/tests/tests2/129_scopes.c')
| -rw-r--r-- | tinycc/tests/tests2/129_scopes.c | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/tinycc/tests/tests2/129_scopes.c b/tinycc/tests/tests2/129_scopes.c deleted file mode 100644 index b63b682..0000000 --- a/tinycc/tests/tests2/129_scopes.c +++ /dev/null @@ -1,43 +0,0 @@ -#include <stdio.h> -enum{ in = 0}; -#define myassert(X) do{ if(!X) printf("%d: assertion failed\n", __LINE__); }while(0) -int main(){ - { - myassert(!in); - if(sizeof(enum{in=1})) myassert(in); - myassert(!in); //OOPS - } - { - myassert(!in); - switch(sizeof(enum{in=1})) { default: myassert(in); } - myassert(!in); //OOPS - } - { - myassert(!in); - while(sizeof(enum{in=1})) { myassert(in); break; } - myassert(!in); //OOPS - } - { - myassert(!in); - do{ myassert(!in);}while(0*sizeof(enum{in=1})); - myassert(!in); //OOPS - } - - { - myassert(!in); - for(sizeof(enum{in=1});;){ myassert(in); break; } - myassert(!in); //OK - } - { - myassert(!in); - for(;;sizeof(enum{in=1})){ myassert(in); break; } - myassert(!in); //OK - } - { - myassert(!in); - for(;sizeof(enum{in=1});){ myassert(in); break; } - myassert(!in); //OK - } - -} - |
