Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / tests / Bug_3481_Regression / Bug_3481_Regression.cpp
blob826e461b0cbe8d9c8cf8f91b75a2a916dc6f98bb
1 #include "FooC.h"
3 struct Foo_i : Foo
5 static size_t s_count_;
7 Foo_i ()
9 ++s_count_;
12 ~Foo_i ()
14 --s_count_;
17 private:
18 Foo_i (const Foo_i &);
19 Foo_i operator= (const Foo_i &);
22 size_t Foo_i::s_count_ = 0;
24 int ACE_TMAIN (int , ACE_TCHAR *[])
27 Foo_var f1 = new Foo_i;
28 FooSeq fs;
29 fs.length (1);
30 fs[0] = f1;
31 fs.length (0);
32 fs.length (1);
33 fs[0] = f1;
35 return Foo_i::s_count_; // must be zero to pass the test