From: Jason Merrill Date: Fri, 5 Jun 1998 22:57:38 +0000 (-0400) Subject: new X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1dd6b205d683964b2e77e11e3fd5e5f58a255083;p=gcc.git new From-SVN: r20257 --- diff --git a/gcc/testsuite/g++.old-deja/g++.other/dtor1.C b/gcc/testsuite/g++.old-deja/g++.other/dtor1.C new file mode 100644 index 00000000000..3f9803c39a8 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.other/dtor1.C @@ -0,0 +1,17 @@ +// Test for use of typedef in explicit destructor call. + +#include + +struct X { + typedef X foo; +}; + +X x; +unsigned char bar[sizeof (X)]; + +int +main () +{ + X* p = new (bar) X; + p->~foo(); +};