gcc/testsuite/gcc.c-torture/execute/pr114965.c
raw| 1 | /* PR tree-optimization/114965 */ |
| 2 | |
| 3 | static void |
| 4 | foo (const char *x) |
| 5 | { |
| 6 | |
| 7 | char a = '0'; |
| 8 | while (1) |
| 9 | { |
| 10 | switch (*x) |
| 11 | { |
| 12 | case '_': |
| 13 | case '+': |
| 14 | a = *x; |
| 15 | x++; |
| 16 | continue; |
| 17 | default: |
| 18 | break; |
| 19 | } |
| 20 | break; |
| 21 | } |
| 22 | if (a == '0' || a == '+') |
| 23 | __builtin_abort (); |
| 24 | } |
| 25 | |
| 26 | int |
| 27 | main () |
| 28 | { |
| 29 | foo ("_"); |
| 30 | } |