PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
[official-gcc.git] / gcc / testsuite / g++.dg / rtti / template1.C
blobe2a03766fbb57375266e535e582abb639420f4f7
1 // PR c++/49387
3 #include <typeinfo>
5 struct ResourceMonitorClient { };
7 template <typename T> struct ResourcePool : public ResourceMonitorClient {
8   virtual ~ResourcePool() { }
9 };
11 template <typename T> struct BaseWriter {
13   BaseWriter() {
14     typeid(ResourcePool<int>*);
15   }
17   virtual void run() {
18     ResourcePool<int> pool;
19   }
23 BaseWriter<void> b;