2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.mike / p5469a.C
blob03a398469acecf8ef0b487e31c4d2a1b5d8e226f
1 // { dg-do run  }
2 // prms-id: 5469
4 int count;
6 class A {
7   A();
8   A(const A&);
9 public:
10   A(int) { ++count; }
11   ~A() { --count; }
12   int operator== (const A& r) { return 1; }
15 int main() {
16   {
17     A a (1);
18     if (a == 2 || a == 1)
19       ;
20   }
21   return count;