gcc/testsuite/gcc.dg/debug/dwarf2/pr53948.c
raw| 1 | /* Test that we have line information for the line |
| 2 | with local variable initializations. */ |
| 3 | /* { dg-options "-O0 -gdwarf -dA" } */ |
| 4 | /* { dg-final { scan-assembler ".loc 1 8 \[0-9\]|\[#/!\]\[ \t\]+line 8" } } */ |
| 5 | |
| 6 | |
| 7 | int f (register int a, register int b) { |
| 8 | register int x = b, y = a; |
| 9 | return x + y; } |
| 10 |