(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
expr/
cast8.C
// PR c++/29886

struct A {
  static int x[1];
};

void foo(int i)
{
  if (int(A::x[i])) {}
}