public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/c++-coroutines] PR c++/79592 adjust testcase
@ 2020-01-17 11:02 Iain D Sandoe
  0 siblings, 0 replies; only message in thread
From: Iain D Sandoe @ 2020-01-17 11:02 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:1810a89c77bbfc5dfc7ec03fed78d0f2a0b37b0f

commit 1810a89c77bbfc5dfc7ec03fed78d0f2a0b37b0f
Author: Nathan Sidwell <nathan@acm.org>
Date:   Mon Jan 6 15:22:02 2020 +0000

    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:
---
 gcc/testsuite/ChangeLog             | 5 +++++
 gcc/testsuite/g++.dg/ubsan/vptr-4.C | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 878ea37..425c0ce 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2020-01-06  Nathan Sidwell  <nathan@acm.org>
+
+	PR c++/79592
+	* g++.dg/ubsan/vptr-4.C: Add expected error.
+
 2020-01-06  Richard Sandiford  <richard.sandiford@arm.com>
 
 	* 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 764f599..a21d3d6 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<U> {
   int b;
   int g() { return 0; }
   virtual int v() { return 1; }
-  constexpr const W<U> *foo() { return (const W<U> *) reinterpret_cast<const V<U> *> (this); }
+  constexpr const W<U> *foo() { return (const W<U> *) reinterpret_cast<const V<U> *> (this); } // { dg-error "is not a constant expression" }
 };
 
 constexpr W<int> w;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-01-17 11:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-17 11:02 [gcc/devel/c++-coroutines] PR c++/79592 adjust testcase Iain D Sandoe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).