aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/range-for28.C
blob: 5007349949aa4fa72dd308ba9464b737a69784aa (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/59165
// { dg-require-effective-target c++11 }

namespace std {
int* begin(int i) { return (int*)0; }
int* end(int i) { return (int*)0; }
}

int main() {
  for (int a : 10) { }  // { dg-error "was not declared" }
}