From patchwork Thu Feb 14 10:01:40 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [testsuite] Fix gcc.dg/debug/dwarf2/pr53948.c with Sun as From: Rainer Orth X-Patchwork-Id: 220406 Message-Id: To: gcc-patches@gcc.gnu.org Date: Thu, 14 Feb 2013 11:01:40 +0100 The new gcc.dg/debug/dwarf2/pr53948.c test was failing on Solaris with Sun as: i386 uses / as comment character, while sparc uses !. The following patch accounts for that. Tested on i386-pc-solaris2.10, sparc-sun-solaris2.11, and x86_64-unknown-linux-gnu, installed on mainline. Rainer 2013-02-13 Rainer Orth * gcc.dg/debug/dwarf2/pr53948.c: Allow for / and ! as comment characters. # HG changeset patch # Parent ed5415e505004fb993791f63f62bc9a6da314167 Fix gcc.dg/debug/dwarf2/pr53948.c with Sun as diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2/pr53948.c b/gcc/testsuite/gcc.dg/debug/dwarf2/pr53948.c --- a/gcc/testsuite/gcc.dg/debug/dwarf2/pr53948.c +++ b/gcc/testsuite/gcc.dg/debug/dwarf2/pr53948.c @@ -1,7 +1,7 @@ /* Test that we have line information for the line with local variable initializations. */ /* { dg-options "-O0 -g -dA" } */ -/* { dg-final { scan-assembler ".loc 1 8 0|# line 8" } } */ +/* { dg-final { scan-assembler ".loc 1 8 0|\[#/!\] line 8" } } */ int f (register int a, register int b) {