C++ PATCHes to run testsuite in C++14 mode

Andreas Schwab schwab@linux-m68k.org
Sun Mar 9 10:45:00 GMT 2014


Jason Merrill <jason@redhat.com> writes:

> diff --git a/gcc/testsuite/g++.dg/cpp0x/alias-decl-debug-0.C b/gcc/testsuite/g++.dg/cpp0x/alias-decl-debug-0.C
> index 5b5d15a..50df842 100644
> --- a/gcc/testsuite/g++.dg/cpp0x/alias-decl-debug-0.C
> +++ b/gcc/testsuite/g++.dg/cpp0x/alias-decl-debug-0.C
> @@ -1,6 +1,7 @@
>  // Origin: PR c++/51032
>  // { dg-skip-if "No stabs" { aarch64*-*-* mmix-*-* *-*-aix* alpha*-*-* hppa*64*-*-* ia64-*-* *-*-vxworks* nios2-*-* } { "*" } { "" } }
> -// { dg-options "-std=c++11 -gstabs+" }
> +// { dg-do compile { target c++11 } }
> +// { dg-options "-gstabs+" }

Order matters, by using dg-do after dg-skip the latter is effectively
ignored.  Tested on ia64-suse-linux and installed as obvious.

Andreas.

	* g++.dg/cpp0x/alias-decl-debug-0.C: Move dg-skip after dg-do.

diff --git a/gcc/testsuite/g++.dg/cpp0x/alias-decl-debug-0.C b/gcc/testsuite/g++.dg/cpp0x/alias-decl-debug-0.C
index 50df842..524216a 100644
--- a/gcc/testsuite/g++.dg/cpp0x/alias-decl-debug-0.C
+++ b/gcc/testsuite/g++.dg/cpp0x/alias-decl-debug-0.C
@@ -1,6 +1,6 @@
 // Origin: PR c++/51032
-// { dg-skip-if "No stabs" { aarch64*-*-* mmix-*-* *-*-aix* alpha*-*-* hppa*64*-*-* ia64-*-* *-*-vxworks* nios2-*-* } { "*" } { "" } }
 // { dg-do compile { target c++11 } }
+// { dg-skip-if "No stabs" { aarch64*-*-* mmix-*-* *-*-aix* alpha*-*-* hppa*64*-*-* ia64-*-* *-*-vxworks* nios2-*-* } { "*" } { "" } }
 // { dg-options "-gstabs+" }
 
 template <class C>
-- 
1.9.0

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Gcc-patches mailing list