Sign in
gnu
/
gcc
/
609d1c1bf0472f9d9415b0b124603348dbcd9e4e
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
p7865.C
blob: 2cac1d57a8c3a5fb0717997fa21e253790e48b11 [
file
] [
log
] [
blame
]
// 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
;
}