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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [using42.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++/30195
2
// { dg-do run }
3
 
4
template 
5
struct B
6
{
7
    void foo(T) {}
8
};
9
 
10
template
11
struct Out
12
{
13
    struct D : B, B
14
    {
15
        using B::foo;
16
        using B::foo;
17
        void bar() { foo(3); }
18
    };
19
};
20
 
21
int main()
22
{
23
    Out::D x;
24
    x.bar();
25
    return 0;
26
}

powered by: WebSVN 2.1.0

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