Files
qt-creator/tests/auto/cplusplus/cxx11/data/rangeFor.1.cpp
Christian Kamm 9bd86e7d68 C++11: Allow brace-init-list in range-for statement.
Also drop the unused 'initializer' member from
RangeBasedForStatementAST.

Change-Id: I078ebbc85cafa643af4bfe62d698bf7de71360e4
Reviewed-by: hjk <qthjk@ovi.com>
2012-09-19 11:54:50 +02:00

6 lines
103 B
C++

int main() {
for (int x : {1, 2, 3}) {}
for (int x : foo) ;
for (int& x : array) x += 2;
}