[gcc(refs/vendors/ARM/heads/arm-perf-staging)] c++: Fix tmplattr10.C

Tamar Christina tnfchris@gcc.gnu.org
Fri Jul 17 15:18:27 GMT 2020


https://gcc.gnu.org/g:2991e83b34a3af4237a207010a5ec147b83fc5b7

commit 2991e83b34a3af4237a207010a5ec147b83fc5b7
Author: Marek Polacek <polacek@redhat.com>
Date:   Thu May 28 10:13:16 2020 -0400

    c++: Fix tmplattr10.C
    
    This test uses C++11 features so should only run in c++11.
    
            * g++.dg/ext/tmplattr10.C: Only run in c++11.

Diff:
---
 gcc/testsuite/g++.dg/ext/tmplattr10.C | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/g++.dg/ext/tmplattr10.C b/gcc/testsuite/g++.dg/ext/tmplattr10.C
index 3fb8c21ccbe..46caa070098 100644
--- a/gcc/testsuite/g++.dg/ext/tmplattr10.C
+++ b/gcc/testsuite/g++.dg/ext/tmplattr10.C
@@ -1,5 +1,5 @@
 // PR c++/95222
-// { dg-do compile { target { { i?86-*-* x86_64-*-* } && ia32 } } }
+// { dg-do compile { target { { { i?86-*-* x86_64-*-* } && ia32 } && c++11 } } }
 
 #if defined(_MSC_VER)
 #define CC_FASTCALL __fastcall


More information about the Gcc-cvs mailing list