This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[testsuite, committed] Fix unresolved vector26.C for c++98


The scan-assembler test in vector26.C was showing up unresolved for c++98,
since in that case we report an expected error and don't produce any asm.

Tested on mips64-linux-gnu and applied as obvious.

Thanks,
Richard


gcc/testsuite/
	* g++.dg/ext/vector26.C: Restrict scan-assembler test to ! c++98.

Index: gcc/testsuite/g++.dg/ext/vector26.C
===================================================================
--- gcc/testsuite/g++.dg/ext/vector26.C	2014-01-30 18:16:51.942258933 +0000
+++ gcc/testsuite/g++.dg/ext/vector26.C	2014-02-01 09:15:17.721447378 +0000
@@ -5,4 +5,4 @@
 typedef enum { e } T __attribute__((vector_size(8)));
 static void foo(T t) {}
 void bar (T t) {}		// { dg-error "no linkage" "" { target c++98 } }
-// { dg-final { scan-assembler-not "globl\[ \t]*_Z3bar" } }
+// { dg-final { scan-assembler-not "globl\[ \t]*_Z3bar" { target { ! c++98 } } } }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]