public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/vendors/redhat/heads/gcc-8-branch)] c++/98032 - add testcase
@ 2021-05-14 14:55 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2021-05-14 14:55 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:919af48e991ad534db8a6edca3c67091c3f7344d

commit 919af48e991ad534db8a6edca3c67091c3f7344d
Author: Richard Biener <rguenther@suse.de>
Date:   Fri Apr 30 14:14:48 2021 +0200

    c++/98032 - add testcase
    
    This adds another testcase for PR95719.
    
    2021-04-30  Richard Biener  <rguenther@suse.de>
    
            PR c++/98032
            * g++.dg/pr98032.C: New testcase.
    
    (cherry picked from commit dfc70841eb0ca42637826177f329cf6c98ee00ad)

Diff:
---
 gcc/testsuite/g++.dg/pr98032.C | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gcc/testsuite/g++.dg/pr98032.C b/gcc/testsuite/g++.dg/pr98032.C
new file mode 100644
index 00000000000..d7eef276668
--- /dev/null
+++ b/gcc/testsuite/g++.dg/pr98032.C
@@ -0,0 +1,20 @@
+// { dg-do compile }
+
+namespace osl {
+class Thread {
+public:
+  virtual ~Thread();
+  virtual void join();
+};
+} // namespace osl
+class SimpleReferenceObject {
+protected:
+  virtual ~SimpleReferenceObject();
+};
+class Thread : SimpleReferenceObject, osl::Thread {
+public:
+  using osl::Thread::join;
+};
+class RenderThread : Thread {
+  RenderThread() { join(); }
+};


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

only message in thread, other threads:[~2021-05-14 14:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-14 14:55 [gcc(refs/vendors/redhat/heads/gcc-8-branch)] c++/98032 - add testcase Jakub Jelinek

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).