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
match.pd: Fold vec_perm with view_convert
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
temporary.C
blob
097507379cc8368757ff75487e6192a97e240b1c
1
// { dg-do run }
2
// From: bruno@isoft.com.ar (Bruno R. Depascale)
3
// Subject: No destructor bug
4
// Date: Mon, 14 Feb 1994 12:49:45 -0300 (Arg)
5
6
// Bug: temporaries created with constructor notation aren't destroyed.
7
8
int count = 0;
9
10
class A {
11
public:
12
A() { ++count; }
13
~A() { --count; }
14
};
15
16
int main()
17
{
18
A();
19
return count;
20
}