repo.or.cz
/
ACE_TAO.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge pull request #2222 from jwillemsen/jwi-dllexportwarning
[ACE_TAO.git]
/
TAO
/
tests
/
Bug_3481_Regression
/
Bug_3481_Regression.cpp
blob
826e461b0cbe8d9c8cf8f91b75a2a916dc6f98bb
1
#include
"FooC.h"
2
3
struct
Foo_i
:
Foo
4
{
5
static size_t
s_count_
;
6
7
Foo_i
()
8
{
9
++
s_count_
;
10
}
11
12
~
Foo_i
()
13
{
14
--
s_count_
;
15
}
16
17
private
:
18
Foo_i
(
const
Foo_i
&);
19
Foo_i
operator
= (
const
Foo_i
&);
20
};
21
22
size_t
Foo_i
::
s_count_
=
0
;
23
24
int
ACE_TMAIN
(
int
,
ACE_TCHAR
*[])
25
{
26
{
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
;
34
}
35
return
Foo_i
::
s_count_
;
// must be zero to pass the test
36
}