Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
dtor1.C
blob: 103c4705fec7f9cca24547aa99ac9f0fac05e253 [
file
] [
log
] [
blame
]
// { dg-do run }
// 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
();
}