OSDN Git Service

fix
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / dtor13.C
1 // Build don't link:
2 // Origin: Mark Mitchell <mark@codesourcery.com>
3
4 template <class T> struct S { ~S(); };
5 int i;
6
7 void f () 
8 {
9   i.~S(); // ERROR - invalid destructor call.
10 }