Merged revisions 208012,208018-208019,208021,208023-208030,208033,208037,208040-20804...
[official-gcc.git] / main / gcc / testsuite / g++.dg / cpp0x / initlist41.C
blob7ae4928f2bd2b4fde662c7367627c014e6fc9835
1 // PR c++/44703
2 // { dg-do compile { target c++11 } }
4 #include <initializer_list>
6 typedef std::initializer_list<int> type ;
7 void f(type) {}
9 int main()
11 //  error: could not convert '{1, 2, 3}' to 'type'
12     f({1,2,3}) ;