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

constexpr bool g()
{
  int ar[4] = { 1, 2, 3, 4 };
  auto e1 = ar;
  auto e4 = ar+3;
  return (e4-e1) == 3;
}

#define SA(X) static_assert((X),#X)
SA(g());