Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.mike/p5469a.C

raw
1 // { dg-do run }
2 // prms-id: 5469
3
4 int count;
5
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; }
13 };
14
15 int main() {
16 {
17 A a (1);
18 if (a == 2 || a == 1)
19 ;
20 }
21 return count;
22 }