From: Nathan Sidwell Date: Mon, 6 Jan 2020 15:22:02 +0000 (+0000) Subject: PR c++/79592 adjust testcase X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1810a89c77bbfc5dfc7ec03fed78d0f2a0b37b0f;p=gcc.git PR c++/79592 adjust testcase https://gcc.gnu.org/ml/gcc-patches/2020-01/msg00127.html * g++.dg/ubsan/vptr-4.C: Add expected error. From-SVN: r279902 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 878ea370480..425c0ce12cb 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-01-06 Nathan Sidwell + + PR c++/79592 + * g++.dg/ubsan/vptr-4.C: Add expected error. + 2020-01-06 Richard Sandiford * gcc.target/aarch64/sve/acle/general/cpy_1.c: New test. diff --git a/gcc/testsuite/g++.dg/ubsan/vptr-4.C b/gcc/testsuite/g++.dg/ubsan/vptr-4.C index 764f5999501..a21d3d60a3a 100644 --- a/gcc/testsuite/g++.dg/ubsan/vptr-4.C +++ b/gcc/testsuite/g++.dg/ubsan/vptr-4.C @@ -35,7 +35,7 @@ struct W : V { int b; int g() { return 0; } virtual int v() { return 1; } - constexpr const W *foo() { return (const W *) reinterpret_cast *> (this); } + constexpr const W *foo() { return (const W *) reinterpret_cast *> (this); } // { dg-error "is not a constant expression" } }; constexpr W w;