summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/torture/pr59208.C
blob: 2b2ad6deea5b2b1936d3a3dde13819e80befe1a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// { dg-do compile }
class A {
public:
  A();
  A(int *);
};
class B {};
class C : B {
public:
  virtual void m_fn1();
  void operator+=(int) { m_fn1(); }
};
enum DebuggerType {};
C a;
DebuggerType b;
void operator==(A &, const A &);
static A get_dbx_doc(A &p1) { p1 == 0; return A(); }

void add_button() {
  A c;
  switch (b)
  case 0:
  get_dbx_doc(c);
  a += 0;
}