OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [initlist46.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/48281
2
// { dg-options "-std=c++0x -O2" }
3
// { dg-do run }
4
 
5
#include 
6
 
7
typedef std::initializer_list  int1;
8
typedef std::initializer_list int2;
9
static int2 ib = {{42,2,3,4,5},{2,3,4,5,1},{3,4,5,2,1}};
10
 
11
int main()
12
{
13
  return *(ib.begin()->begin()) != 42;
14
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.