URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [initlist46.C] - Rev 774
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/48281
// { dg-options "-std=c++0x -O2" }
// { dg-do run }
#include <initializer_list>
typedef std::initializer_list<int> int1;
typedef std::initializer_list<int1> int2;
static int2 ib = {{42,2,3,4,5},{2,3,4,5,1},{3,4,5,2,1}};
int main()
{
return *(ib.begin()->begin()) != 42;
}
Go to most recent revision | Compare with Previous | Blame | View Log