Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
p7865.C
blob: 8727e1554ff44a71eaeb016bef242d2c5e2e372b [
file
] [
log
] [
blame
]
// { dg-do run }
// prms-id: 7865
int
count
;
struct
A
{
A
()
{
++
count
;
}
~
A
()
{
--
count
;
}
};
int
foo
()
{
return
1
;
}
int
bar
()
{
A a
;
for
(;;)
{
A b
;
if
(
foo
())
return
0
;
if
(
foo
())
return
0
;
}
return
0
;
}
int
main
()
{
bar
();
return
count
;
}