diff mbox

[4.6] Unsupported c++-11 selector in nullptr28.C

Message ID 4FF2706E.6090809@linaro.org
State New
Headers show

Commit Message

Michael Hope July 3, 2012, 4:09 a.m. UTC
This patch fixes a selector fault in the new g++.dg/cpp0x/nullptr28.C test
by changing the c++-11 target selector to the equivalent options.  The
test itself was backported from trunk in r188953 to fix PR52988.

Tested on x86_64-linux.  The ERROR changes to a PASS.

OK for 4.6?

-- Michael

gcc/testsuite/

2012-07-03  Michael Hope  <michael.hope@linaro.org>

        PR c++/53814
        * g++.dg/cpp0x/nullptr28.C: Change selector for explicit
        options.

Comments

Jakub Jelinek July 3, 2012, 4:42 a.m. UTC | #1
On Tue, Jul 03, 2012 at 04:09:18PM +1200, Michael Hope wrote:
> This patch fixes a selector fault in the new g++.dg/cpp0x/nullptr28.C test
> by changing the c++-11 target selector to the equivalent options.  The
> test itself was backported from trunk in r188953 to fix PR52988.
> 
> Tested on x86_64-linux.  The ERROR changes to a PASS.
> 
> OK for 4.6?

Okay.

> 2012-07-03  Michael Hope  <michael.hope@linaro.org>
> 
>        PR c++/53814
>        * g++.dg/cpp0x/nullptr28.C: Change selector for explicit
>        options.
> 
> diff --git a/gcc/testsuite/g++.dg/cpp0x/nullptr28.C b/gcc/testsuite/g++.dg/cpp0x/nullptr28.C
> index 05fbe57..4cc790d 100644
> --- a/gcc/testsuite/g++.dg/cpp0x/nullptr28.C
> +++ b/gcc/testsuite/g++.dg/cpp0x/nullptr28.C
> @@ -1,4 +1,5 @@
> -// { dg-do run { target c++11 } }
> +// { dg-do run }
> +// { dg-options "-std=c++0x -pedantic-errors" }
> 
>  typedef decltype(nullptr) nullptr_t;

	Jakub
diff mbox

Patch

diff --git a/gcc/testsuite/g++.dg/cpp0x/nullptr28.C b/gcc/testsuite/g++.dg/cpp0x/nullptr28.C
index 05fbe57..4cc790d 100644
--- a/gcc/testsuite/g++.dg/cpp0x/nullptr28.C
+++ b/gcc/testsuite/g++.dg/cpp0x/nullptr28.C
@@ -1,4 +1,5 @@ 
-// { dg-do run { target c++11 } }
+// { dg-do run }
+// { dg-options "-std=c++0x -pedantic-errors" }

  typedef decltype(nullptr) nullptr_t;