diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-file1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-file1.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-file1.c b/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-file1.c new file mode 100644 index 000000000..c68dfe436 --- /dev/null +++ b/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-file1.c @@ -0,0 +1,9 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -gdwarf-2 -dA" } */ +/* { dg-final { scan-assembler "File Entry:|.file" } } */ +/* Verify that a file entry is output for this file. Only systems that + do not define HAVE_AS_DWARF2_DEBUG_LINE will put out "File Entry:", + but systems that do define HAVE_AS_DWARF2_DEBUG_LINE will put out a + ".file" so we check for either. */ + +int bar = 3; |