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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [constexpr-template1.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++/50248, DR 1358
2
// { dg-options -std=c++0x }
3
 
4
template
5
struct earray
6
{
7
    Elt elts[max];
8
    earray() = default;
9
    template
10
    constexpr earray(Elt2&& ... e): elts(0) { }
11
};
12
 
13
struct SessionData
14
{
15
    SessionData(SessionData&) = delete;
16
    SessionData() = default;
17
};
18
 
19
struct MapSessionData : SessionData
20
{
21
    earray equip_index;
22
};
23
 
24
void test()
25
{
26
    MapSessionData *sd = new MapSessionData;
27
}

powered by: WebSVN 2.1.0

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