2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / init / placement1.C
blob382fae8ed43bae4bc5709c5cd3b49188930892d5
1 // PR c++/11266
2 // We were expanding the same TARGET_EXPR twice, for placement new and
3 // delete.
5 void* operator new    (__SIZE_TYPE__, void*) throw();
6 void  operator delete (void*, void*)        throw();
8 struct A { A(); };
10 void foo() { new(new A)A; }