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

Subversion Repositories openrisc

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

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/45418
2
// { dg-options -std=c++0x }
3
 
4
struct A1 { };
5
struct A2 {
6
  A2();
7
};
8
 
9
template  struct B {
10
  T ar[1];
11
  B(T t):ar{t} {}
12
};
13
 
14
int main(){
15
  B bi{1};
16
  A1 a1;
17
  B ba1{a1};
18
  A2 a2;
19
  A2 a2r[1]{{a2}};
20
  B ba2{a2};
21
}

powered by: WebSVN 2.1.0

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