aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/range-for19.C
blob: e3f446f3700a90aa633cafc2367bab89eb11f56c (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/49838

// { dg-do compile { target c++11 } }

int main()
{
  auto a;        // { dg-error "no initializer" }
  for(auto i: a) // { dg-error "deduce" }
    ;
}