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.
This commit is contained in:
parent
18d713fbd3
commit
dfc70841eb
20
gcc/testsuite/g++.dg/pr98032.C
Normal file
20
gcc/testsuite/g++.dg/pr98032.C
Normal file
@ -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(); }
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user