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
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
p7865.C
blob
2cac1d57a8c3a5fb0717997fa21e253790e48b11
1
// prms-id: 7865
2
3
int count;
4
5
struct A {
6
A() { ++count; }
7
~A() { --count; }
8
};
9
10
int foo() { return 1; }
11
12
int bar()
13
{
14
A a;
15
for (;;) {
16
A b;
17
if (foo())
18
return 0;
19
if (foo())
20
return 0;
21
}
22
return 0;
23
}
24
25
int main() {
26
bar();
27
return count;
28
}