(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
cpp1z/
constexpr-if37.C
// PR c++/105885
// { dg-do compile { target c++17 } }
// { dg-additional-options -Wall }

int i;

template<const char* ARG = nullptr>
void test() {
  if constexpr(ARG == nullptr) {
    ++i;
  } else {
    --i;
  }
}

const char CONSTSTR[] = {'\n', '\t', ' ', '\0'};

int main() {
  test();
  test<CONSTSTR>();
}