Last change
on this file since 2 was 2, checked in by bird, 22 years ago |
Initial revision
|
-
Property cvs2svn:cvs-rev
set to
1.1
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
File size:
246 bytes
|
Line | |
---|
1 | // prms-id: 5469
|
---|
2 |
|
---|
3 | int count;
|
---|
4 |
|
---|
5 | class A {
|
---|
6 | A();
|
---|
7 | A(const A&);
|
---|
8 | public:
|
---|
9 | A(int) { ++count; }
|
---|
10 | ~A() { --count; }
|
---|
11 | int operator== (const A& r) { return 1; }
|
---|
12 | };
|
---|
13 |
|
---|
14 | int main() {
|
---|
15 | {
|
---|
16 | A a (1);
|
---|
17 | if (a == 2 || a == 1)
|
---|
18 | ;
|
---|
19 | }
|
---|
20 | return count;
|
---|
21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.