Commit 1dd6b205 by Jason Merrill

new

From-SVN: r20257
parent a4785564
// Test for use of typedef in explicit destructor call.
#include <new>
struct X {
typedef X foo;
};
X x;
unsigned char bar[sizeof (X)];
int
main ()
{
X* p = new (bar) X;
p->~foo();
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment