summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/array21.C
blob: f41ce86b1d9069e5b25703f355de3bd1d043ea7c (plain)
1
2
3
4
5
6
7
// PR c++/27722

void foo()
{
  const int x[] = 0; // { dg-error "size" }
  ++x;
}