2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / temporary.C
blob097507379cc8368757ff75487e6192a97e240b1c
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)
6 // Bug: temporaries created with constructor notation aren't destroyed.
8 int count = 0;
10 class A {
11 public:
12   A() { ++count; }
13   ~A() { --count; }
16 int main()
18   A();
19   return count;