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
PR testsuite/86649
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
tree-ssa
/
lifetime-dse1.C
blob
90c90f2650c9e2197dfdc6e52cb68e8fbaeb8ce9
1
// PR c++/61982
2
// { dg-additional-options "-O2 -fdump-tree-optimized" }
3
// { dg-final { scan-tree-dump-not "= 0" "optimized" } }
4
5
struct X {
6
int i;
7
void clear() { i = 0; }
8
};
9
10
void f(X* x) {
11
x->clear();
12
x->~X();
13
}
14
15
void g(X* x) {
16
x->clear();
17
delete x;
18
}