teak-llvm/clang/test/Import/cxx-for-range/Inputs/F.cpp
Richard Smith 8baa50013c [cxx2a] P0614R1: Support init-statements in range-based for loops.
We don't yet support this for the case where a range-based for loop is
implicitly rewritten to an ObjC for..in statement.

llvm-svn: 343350
2018-09-28 18:44:09 +00:00

11 lines
121 B
C++

struct Container {
int *begin();
int *end();
};
void f() {
for (Container c; int varname : c) {
return;
}
}