This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCHes to run testsuite in C++14 mode
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Jason Merrill <jason at redhat dot com>
- Cc: gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 09 Mar 2014 08:53:29 +0100
- Subject: Re: C++ PATCHes to run testsuite in C++14 mode
- Authentication-results: sourceware.org; auth=none
- References: <531A3D9B dot 1030203 at redhat dot com>
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."