summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug
diff options
context:
space:
mode:
authorsje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-12 16:52:33 +0000
committersje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-12 16:52:33 +0000
commitfa028516d197432fc290828ea963e3fa3c4eb2b0 (patch)
tree6f4736f4daf01f6d06c4e436379d7571aff8f199 /gcc/testsuite/gcc.dg/debug
parent46139d3fd31ce13b3aff9c67148fb44272943557 (diff)
downloadgcc-fa028516d197432fc290828ea963e3fa3c4eb2b0.tar.gz
PR testsuite/29093
* gcc.dg/debug/dwarf2/dwarf-file1.c: Check for ".file". git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117667 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/debug')
-rw-r--r--gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-file1.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-file1.c b/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-file1.c
index 96a2b5ab2f1..c68dfe436e3 100644
--- a/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-file1.c
+++ b/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-file1.c
@@ -1,5 +1,9 @@
/* { dg-do compile } */
/* { dg-options "-O2 -gdwarf-2 -dA" } */
-/* { dg-final { scan-assembler "File Entry:" } } */
-/* Verify that a file entry is output for this file. */
+/* { 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;