☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wduplicated-cond5.C
☽
☼
gcc/testsuite/g++.dg/warn/Wduplicated-cond5.C
code
plain
raw
1
// PR c++/108597
2
// { dg-do compile }
3
// { dg-options "-Wduplicated-cond" }
4
5
template <typename T>
6
struct MyStruct {
7
8
void check(int &x) {
9
if (&x == &_a) {
10
} else if (&x == &_b) {
11
}
12
}
13
14
int _a;
15
int _b;
16
};