(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
warn/
Wduplicated-cond4.C
// PR c++/107593
// { dg-do compile }
// { dg-options "-Wduplicated-cond" }

int n;

template<class T> bool g() { n = 42; return false; }

template<class T>
void f() {
  if (n)
    ;
  else if (g<T>())
    ;
  else if (n)
    ;
}