diff mbox

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

Message ID 87txcj9l66.fsf@talisman.default
State New
Headers show

Commit Message

Richard Sandiford Feb. 1, 2014, 10:33 a.m. UTC
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.
diff mbox

Patch

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 } } } }