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
Merged r158907 through r159238 into branch.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wstrict-aliasing-bogus-escape-2.C
blob
29414e00e366e244593b509b686c39a0fc20f891
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -Wstrict-aliasing" } */
3
4
#include<list>
5
6
struct A
7
{
8
virtual ~A();
9
};
10
11
A* foo();
12
13
void bar(std::list<int> x)
14
{
15
std::list<int> y = x;
16
if (*y.rbegin())
17
delete foo();
18
}
19