Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wstrict-aliasing-bogus-escape-2.C
blob: 29414e00e366e244593b509b686c39a0fc20f891 [
file
] [
log
] [
blame
]
/* { dg-do compile } */
/* { dg-options "-O2 -Wstrict-aliasing" } */
#include
<list>
struct
A
{
virtual
~
A
();
};
A
*
foo
();
void
bar
(
std
::
list
<int>
x
)
{
std
::
list
<int>
y
=
x
;
if
(*
y
.
rbegin
())
delete
foo
();
}