gcc/testsuite/g++.dg/pr98032.C
raw| 1 | // { dg-do compile } |
| 2 | |
| 3 | namespace osl { |
| 4 | class Thread { |
| 5 | public: |
| 6 | virtual ~Thread(); |
| 7 | virtual void join(); |
| 8 | }; |
| 9 | } // namespace osl |
| 10 | class SimpleReferenceObject { |
| 11 | protected: |
| 12 | virtual ~SimpleReferenceObject(); |
| 13 | }; |
| 14 | class Thread : SimpleReferenceObject, osl::Thread { |
| 15 | public: |
| 16 | using osl::Thread::join; |
| 17 | }; |
| 18 | class RenderThread : Thread { |
| 19 | RenderThread() { join(); } |
| 20 | }; |