blob: 826e461b0cbe8d9c8cf8f91b75a2a916dc6f98bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
#include "FooC.h"
struct Foo_i : Foo
{
static size_t s_count_;
Foo_i ()
{
++s_count_;
}
~Foo_i ()
{
--s_count_;
}
private:
Foo_i (const Foo_i &);
Foo_i operator= (const Foo_i &);
};
size_t Foo_i::s_count_ = 0;
int ACE_TMAIN (int , ACE_TCHAR *[])
{
{
Foo_var f1 = new Foo_i;
FooSeq fs;
fs.length (1);
fs[0] = f1;
fs.length (0);
fs.length (1);
fs[0] = f1;
}
return Foo_i::s_count_; // must be zero to pass the test
}
|