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] - Rev 774

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

// PR c++/45418
// { dg-options -std=c++0x }

struct A1 { };
struct A2 {
  A2();
};

template <class T> struct B {
  T ar[1];
  B(T t):ar{t} {}
};

int main(){
  B<int> bi{1};
  A1 a1;
  B<A1> ba1{a1};
  A2 a2;
  A2 a2r[1]{{a2}};
  B<A2> ba2{a2};
}

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

powered by: WebSVN 2.1.0

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