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

Subversion Repositories openrisc

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

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(char) { __builtin_abort(); }
8
    void foo(short) { __builtin_abort(); }
9
    void foo(T) {}
10
};
11
 
12
template
13
struct Out
14
{
15
    struct D : B, B
16
    {
17
        using B::foo;
18
        using B::foo;
19
        void bar() { foo(3); }
20
    };
21
};
22
 
23
int main()
24
{
25
    Out::D x;
26
    x.bar();
27
    return 0;
28
}

powered by: WebSVN 2.1.0

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