gcc/testsuite/gcc.dg/pr111039.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-std=gnu17 -O" } */ |
| 3 | |
| 4 | #if __SIZEOF_INT__ < 4 |
| 5 | #define int __INT32_TYPE__ |
| 6 | #endif |
| 7 | |
| 8 | int _setjmp (); |
| 9 | void abcd (); |
| 10 | void abcde (); |
| 11 | void compiler_corruption_function(int flags) |
| 12 | { |
| 13 | int nowait = flags & 1048576, isexpand = flags & 8388608; |
| 14 | abcd(); |
| 15 | _setjmp(flags); |
| 16 | if (nowait && isexpand) |
| 17 | flags &= 0; |
| 18 | abcde(); |
| 19 | } |