m68k: replace reload_in_progress by reload_in_progress || lra_in_progress
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / auto-dtor1.C
blob9d90a0f20224ac8fec1e0bb53e152ef63d724ea6
1 // DR 1586
2 // { dg-do run { target c++14 } }
4 template <class T>
5 void f (T* p)
7   p->~auto();
10 int d;
11 struct A { ~A() { ++d; } };
13 int main()
15   f(new int(42));
16   f(new A);
17   if (d != 1)
18     throw;
20   (new int)->~auto();