aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/auto42.C
blob: fea4c28d84d909be66591a6998b06a5fb2bc26dd (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 "array of .auto" }
}