Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
tree-ssa
/
pr19952.C
blob: 54589a294cc62727e6c3dc560576405dcd36c37c [
file
] [
log
] [
blame
]
/* PR 19952 */
/* { dg-do compile } */
/* { dg-options "-ftree-vectorize -O2" } */
int
i
;
struct
A
{
~
A
()
{
++
i
;
}
};
struct
B
{
A a
;
};
void
foo
()
{
for
(
int
i
=
0
;
i
<
2
;
++
i
)
{
B
*
p
;
if
(
p
)
p
->~
B
();
}
}