diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/debug/dwarf2/pr53948.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.dg/debug/dwarf2/pr53948.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/debug/dwarf2/pr53948.c b/gcc-4.9/gcc/testsuite/gcc.dg/debug/dwarf2/pr53948.c new file mode 100644 index 000000000..0ec3e84d7 --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.dg/debug/dwarf2/pr53948.c @@ -0,0 +1,10 @@ +/* Test that we have line information for the line + with local variable initializations. */ +/* { dg-options "-O0 -gdwarf -dA" } */ +/* { dg-final { scan-assembler ".loc 1 8 0|\[#/!\]\[ \t\]+line 8" } } */ + + +int f (register int a, register int b) { + register int x = b, y = a; + return x + y; } + |