PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git] / gcc / testsuite / g++.dg / template / pseudodtor1.C
blobcf7c254d66035fc9b3ab0965142114b6f6009494
1 // PR c++/32384
2 // { dg-do compile }
4 struct A
6   typedef int T;
7   T foo ();
9   A () { foo ().~T (); }
12 template<typename> struct B
14   typedef int T;
15   T foo ();
17   B () { foo ().~T (); }
20 template<typename T> struct C
22   T t;
23   C () { t.~T (); }
26 template<typename S> struct D
28   typedef int T;
29   S foo ();
31   D () { foo ().~T(); }
34 struct Z
36   Z () {}
37   ~Z () {}
40 A a;
41 B<int> b;
42 C<int> c1;
43 C<Z> c2;
44 D<int> d;