Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.jason/dtor2.C

raw
1 // { dg-do run }
2 // PRMS Id: 5163
3 // Bug: g++ doesn't accept the explicit destructor call syntax for templates.
4
5 template <class T> struct A { };
6 A<int> a;
7
8 int main()
9 {
10 a.~A(); // { dg-bogus "" }
11 }