Debian Codegraph @

gcc/testsuite/g++.dg/warn/Wduplicated-cond5.C

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 };