repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
dtor1.C
blob
103c4705fec7f9cca24547aa99ac9f0fac05e253
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
}