URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [initlist41.C] - Rev 826
Compare with Previous | Blame | View Log
// PR c++/44703
// { dg-options -std=c++0x }
#include <initializer_list>
typedef std::initializer_list<int> type ;
void f(type) {}
int main()
{
// error: could not convert '{1, 2, 3}' to 'type'
f({1,2,3}) ;
}