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++.jason
/
cleanup.C
blob
d9adddec2e80dc7664297fd2adead644ca85a5df
1
// Bug: continue over object decl calls destructor but not constructor.
2
3
int c = 0;
4
int d = 0;
5
extern "C" int printf(const char *,...);
6
7
class Foo {
8
public:
9
Foo(){ c++; }
10
~Foo(){ d++; }
11
};
12
13
int main()
14
{
15
for(int i=0;i<2;i++){
16
continue;
17
Foo bar;
18
}
19
printf ("%d %d\n", c, d);
20
if (c == d && d == 0)
21
return 0;
22
return 1;
23
}