gcc/testsuite/gcc.dg/debug/dwarf2/pr88635.c
raw| 1 | /* PR debug/88635 */ |
| 2 | /* { dg-do assemble } */ |
| 3 | /* { dg-options "-g -O2" } */ |
| 4 | /* { dg-additional-options "-fpie" { target pie } } */ |
| 5 | |
| 6 | static void |
| 7 | foo (char *b) |
| 8 | { |
| 9 | unsigned c = 0; |
| 10 | --c; |
| 11 | do |
| 12 | if (++*b++ == 0) |
| 13 | break; |
| 14 | while (--c); |
| 15 | if (c == 0) |
| 16 | while (*b++) |
| 17 | ; |
| 18 | } |
| 19 | |
| 20 | void |
| 21 | bar (void) |
| 22 | { |
| 23 | foo (""); |
| 24 | } |