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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [using40.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
// { dg-do compile }
2
 
3
struct Base
4
{
5
    void f();
6
    typedef int type;
7
    struct Type {};
8
    int i;
9
    static int j;
10
};
11
 
12
struct A : Base
13
{
14
    using Base::f; // { dg-message "previous declaration" }
15
    using Base::f; // { dg-error "redeclaration" }
16
 
17
    using Base::type; // { dg-message "previous declaration" }
18
    using Base::type; // { dg-error "redeclaration" }
19
 
20
    using Base::Type; // { dg-message "previous declaration" }
21
    using Base::Type; // { dg-error "redeclaration" }
22
 
23
    using Base::i; // { dg-message "previous declaration" }
24
    using Base::i; // { dg-error "redeclaration" }
25
 
26
    using Base::j; // { dg-message "previous declaration" }
27
    using Base::j; // { dg-error "redeclaration" }
28
};

powered by: WebSVN 2.1.0

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