PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / opt / pr60912.C
blobad51ba72570ea427ead70405b594c093eeb8fc5a
1 // { dg-do run }
2 // { dg-options "-O -fno-inline -fipa-pta" }
4 struct IFoo
6   virtual void Foo () = 0;
7 };
9 struct Bar:IFoo
11   void Foo () {}
14 int main ()
16   (new Bar ())->Foo ();
17   return 0;