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

login
register
mail settings
Submitter Andreas Schwab
Date March 9, 2014, 7:53 a.m.
Message ID <m2bnxfkdty.fsf@linux-m68k.org>
Download mbox | patch
Permalink /patch/328300/
State New
Headers show

Comments

Andreas Schwab - March 9, 2014, 7:53 a.m.
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.

Patch

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>