OSDN Git Service

* typeck2.c (abstract_virtual_errors): Reword diagnostics, make them
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.other / dtor1.C
1 // { dg-do run  }
2 // Test for use of typedef in explicit destructor call.
3
4 #include <new>
5
6 struct X {
7   typedef X foo;
8 };
9
10 X x;
11 unsigned char bar[sizeof (X)];
12
13 int
14 main ()
15 {
16   X* p = new (bar) X;
17   p->~foo();
18 }