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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// Test that we try normal init if no list ctor is viable.
2
// { dg-options "-std=c++0x" }
3
 
4
#include 
5
 
6
struct B {};
7
 
8
struct C
9
{
10
  C(B);
11
};
12
 
13
struct A
14
{
15
  A(std::initializer_list);
16
  A(B) { }
17
  A(C);
18
};
19
 
20
B b;
21
A a{b};

powered by: WebSVN 2.1.0

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