gcc/testsuite/gcc.dg/pr86459.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-g -O2 -fno-var-tracking-assignments -gsplit-dwarf -g3" } */ |
| 3 | |
| 4 | /* Same as pr86064.c but compiled with -g3 it showed an issue in |
| 5 | output_macinfo_op because of a typo in an assert. */ |
| 6 | |
| 7 | int a; |
| 8 | __attribute__((__cold__)) void b(); |
| 9 | |
| 10 | void e(int *); |
| 11 | int f(); |
| 12 | |
| 13 | void c() { |
| 14 | int d; |
| 15 | e(&d); |
| 16 | a = d; |
| 17 | if (f()) |
| 18 | b(); |
| 19 | } |