9af201011713d2a0ae29485906e6ce31375f530c
[gcc.git] / gcc / testsuite / g++.old-deja / g++.mike / p5469.C
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 0; }
12 };
13
14 int main() {
15 {
16 A a (1);
17 if (a == 2 && a == 1)
18 ;
19 }
20 return count;
21 }