This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[testsuite, committed] Fix unresolved vector26.C for c++98
- From: Richard Sandiford <rdsandiford at googlemail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 01 Feb 2014 10:33:53 +0000
- Subject: [testsuite, committed] Fix unresolved vector26.C for c++98
- Authentication-results: sourceware.org; auth=none
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 } } } }