1 // Test for range-based for loop
2 // Test the loop with an initializer_list
4 // { dg-do run { target c++11 } }
6 #include <initializer_list>
8 extern "C" void abort();
10 template<typename T> T foo()
13 for (T x : {T(1),T(2),T(3),T(4)})
24 for (int x : {1,2,3,4})