PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / opt / declone3.C
blob3dd939a961c3b0c145b2f2c62d17cb0334aa4a0a
1 // PR c++/79176
2 // { dg-do compile { target c++11 } }
3 // { dg-require-effective-target lto }
4 // { dg-options "-flto -Os" }
6 struct A {};
7 struct Object {
8   virtual bool m_fn1();
9   virtual ~Object();
11 struct Item : Object, virtual A {
12   ~Item() {
13     [] {};
14   }
15   bool m_fn1();
17 bool Item::m_fn1() { return true; }