c++: robustify testcase [PR109752]
[official-gcc.git] / gcc / testsuite / g++.dg / template / dtor11.C
blob9bb58b41d47fc83bfbe312619f73521bfb4a9a12
1 template <class T>
2 struct B
4   void f(T *p)
5   {
6     p->template A<int>::~A<int>();
7     p->A::~A();
8     p->~A<int>();
9     p->~A();
10     p->~T();
11     p->T::~T();
12   }
15 template <class T>
16 struct A
17 { };
19 int main()
21   B<A<int> >().f(0);