repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge from trunk
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr59208.C
blob
3dc110c55e3fd77540089b41b5ce1b24dd9c0c67
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; }
18
19
void add_button() {
20
A c;
21
switch (b)
22
case 0:
23
get_dbx_doc(c);
24
a += 0;
25
}