Debian Codegraph @

gcc/testsuite/g++.dg/torture/pr59208.C

raw
1 // { dg-do compile }
2 class A {
3 public:
4 A();
5 A(int *);
6 };
7 class B {};
8 class C : B {
9 public:
10 virtual void m_fn1();
11 void operator+=(int) { m_fn1(); }
12 };
13 enum DebuggerType {};
14 C a;
15 DebuggerType b;
16 void operator==(A &, const A &);
17 static A get_dbx_doc(A &p1) { p1 == 0; return A(); }
18
19 void add_button() {
20 A c;
21 switch (b)
22 case 0:
23 get_dbx_doc(c);
24 a += 0;
25 }