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 main()14 main () 15 { 16 X* p = new (bar) X; 17 p->~foo(); 18 } 19