Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/initlist34.C

raw
1 // PR c++/44157
2 // { dg-do compile { target c++11 } }
3
4 #include <initializer_list>
5
6 template<typename T>
7 void f(T) { }
8
9 int main() {
10 std::initializer_list<int> a = { 0 };
11 f(a);
12
13 f<std::initializer_list<int> >({ 0 });
14 }