From: Martin Sebor Date: Mon, 8 Aug 2016 15:32:16 +0000 (+0000) Subject: PR testsuite/72838 - FAIL: g++.dg/cpp0x/constexpr-cast.C X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=989d0071bbb6fe7acb88a9cb250f790583829e56;p=gcc.git PR testsuite/72838 - FAIL: g++.dg/cpp0x/constexpr-cast.C gcc/testsuite/ChangeLog: * gcc/testsuite/g++.dg/cpp0x/constexpr-cast.C: Correct target selector. * gcc/testsuite/g++.dg/warn/overflow-warn-3.C: Same. * gcc/testsuite/g++.dg/warn/overflow-warn-4.C: Same. From-SVN: r239242 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 18f6e46e7bf..63b3f909050 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2016-08-08 Martin Sebor + + PR testsuite/72838 + * gcc/testsuite/g++.dg/cpp0x/constexpr-cast.C: Correct target selector. + * gcc/testsuite/g++.dg/warn/overflow-warn-3.C: Same. + * gcc/testsuite/g++.dg/warn/overflow-warn-4.C: Same. + 2016-08-08 Andre Vehreschild PR fortran/71936 diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-cast.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-cast.C index bab6ec3ee45..a50e27bdeb0 100644 --- a/gcc/testsuite/g++.dg/cpp0x/constexpr-cast.C +++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-cast.C @@ -5,7 +5,7 @@ int i; // The following is accepted due to bug 49171. -constexpr void *q = reinterpret_cast(&i); // { dg-error "" "bug c++/49171" { xfail *-*-*-* } } +constexpr void *q = reinterpret_cast(&i); // { dg-error "" "bug c++/49171" { xfail *-*-* } } constexpr void *r0 = reinterpret_cast(1); // { dg-error "not a constant expression" } constexpr void *r1 = reinterpret_cast(sizeof 'x'); // { dg-error ".reinterpret_cast\\(1\[ul\]\*\\). is not a constant expression" } diff --git a/gcc/testsuite/g++.dg/warn/overflow-warn-3.C b/gcc/testsuite/g++.dg/warn/overflow-warn-3.C index 62879590d04..0ead45a65c1 100644 --- a/gcc/testsuite/g++.dg/warn/overflow-warn-3.C +++ b/gcc/testsuite/g++.dg/warn/overflow-warn-3.C @@ -131,6 +131,6 @@ h2i (int x) /* { dg-error "division by zero is not a constant.expression" "division" { target c++11 } 19 } */ /* { dg-error "division by zero is not a constant.expression" "division" { target c++11 } 32 } */ /* { dg-warning "invalid conversion from" "convert" { target c++11 } 60 } */ -/* { dg-error "not a constant expression" "constant" { target *-*-*-* } 67 } */ +/* { dg-error "not a constant expression" "constant" { target *-*-* } 67 } */ /* { dg-error "width not an integer constant" "bit.field" { target c++ } 32 } */ /* { dg-error "is not a constant expression" "division" { target c++ } 32 } */ diff --git a/gcc/testsuite/g++.dg/warn/overflow-warn-4.C b/gcc/testsuite/g++.dg/warn/overflow-warn-4.C index 35f20b84b99..447e39144f1 100644 --- a/gcc/testsuite/g++.dg/warn/overflow-warn-4.C +++ b/gcc/testsuite/g++.dg/warn/overflow-warn-4.C @@ -134,6 +134,6 @@ h2i (int x) /* { dg-error "division by zero is not a constant.expression" "division" { target c++11 } 19 } */ /* { dg-error "invalid conversion from" "convert" { target c++11 } 63 } */ /* { dg-error "division by zero is not a constant.expression" "division" { target c++11 } 34 } */ -/* { dg-error "is not a constant expression" "const" { target *-*-*-* } 70 } */ +/* { dg-error "is not a constant expression" "const" { target *-*-* } 70 } */ /* { dg-error "width not an integer constant" "bit.field" { target c++ } 34 } */ /* { dg-error "is not a constant expression" "division" { target c++ } 34 } */