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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/51152
2
// { dg-do compile }
3
 
4
struct A
5
{
6
    int a;
7
};
8
 
9
struct B
10
{
11
    int b1;
12
    int b2;
13
    A b3;
14
};
15
 
16
struct C : B
17
{
18
    typedef int R;
19
    typedef int S;
20
    typedef int T;
21
    using B::b1;
22
    using B::b2;
23
    using B::b3;
24
    void f()
25
    {
26
        b3.a;
27
        b3.~A();
28
    }
29
};

powered by: WebSVN 2.1.0

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