summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/auto42.C
blob: 8d15fc96f09595d257e1e3a9023ad7b6901a2670 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/60628
// { dg-do compile { target c++11 } }

#include <initializer_list>

void foo(int i)
{
  auto x[1] = { 0 };		// { dg-error "8:.x. declared as array of .auto" }
}