(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
cpp1y/
constexpr-71537.C
// PR c++/71537
// { dg-do compile { target c++14 } }

constexpr bool
foo ()
{
  constexpr int n[42] = { 1 };
  constexpr int o = n ? 1 : 0;
  constexpr int p = n + 1 ? 1 : 0;
  constexpr int q = "abc" + 1 ? 1 : 0;
  return o + p + q == 3;
}

static_assert (foo (), "");