PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
[official-gcc.git] / gcc / testsuite / g++.dg / pr48772.C
blob39c1094e8105dead824d61c399b7d4546d921613
1 // { dg-do compile }
2 // { dg-options "-O -fnon-call-exceptions -fno-tree-ccp -fno-tree-dce" }
4 extern "C" void abort ();
6 struct A
8   void foo ()
9   {
10     this->bar ();
11   }
12   virtual void bar ()
13   {
14     abort ();
15   }
16   ~A ()
17   {
18   }
21 struct B:A
23   virtual void bar ()
24   {
25   }
28 int
29 main ()
31   B b;
32   b.foo ();
33   return 0;