summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr/cast8.C
blob: 9f1ce36f487ccbe587b2fcce9edc8e0e0a151285 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/29886

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

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