PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / opt / pr59622-3.C
blob94d66aafe6b3140ccc4fb4ddf3922cabc1ad5f57
1 // PR tree-optimization/59622
2 // { dg-do compile }
3 // { dg-options "-O2" }
5 struct C { int a; int b; };
7 namespace
9   struct A
10   {
11     virtual C foo (); // { dg-warning "used but never defined" }
12     C bar () { return foo (); }
13   };
17 baz ()
19   A a;
20   return a.bar ();