☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
dtor1.C
☽
☼
gcc/testsuite/g++.old-deja/g++.other/dtor1.C
code
plain
raw
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
14
main ()
15
{
16
X* p = new (bar) X;
17
p->~foo();
18
}