URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [initlist34.C] - Rev 320
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/44157
// { dg-options "-std=c++0x" }
#include <initializer_list>
template<typename T>
void f(T) { }
int main() {
std::initializer_list<int> a = { 0 };
f(a);
f<std::initializer_list<int> >({ 0 });
}
Go to most recent revision | Compare with Previous | Blame | View Log