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
/
temporary.C
blob
168bfe9103e18678f1cc79af26cb9a48c7dc4d77
1
// From: bruno@isoft.com.ar (Bruno R. Depascale)
2
// Subject: No destructor bug
3
// Date: Mon, 14 Feb 1994 12:49:45 -0300 (Arg)
4
5
// Bug: temporaries created with constructor notation aren't destroyed.
6
7
int count = 0;
8
9
class A {
10
public:
11
A() { ++count; }
12
~A() { --count; }
13
};
14
15
int main()
16
{
17
A();
18
return count;
19
}