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] - Rev 693

Compare with Previous | Blame | View Log

// { dg-do compile }

struct Base
{
    void f();
    typedef int type;
    struct Type {};
    int i;
    static int j;
};

struct A : Base
{
    using Base::f; // { dg-message "previous declaration" }
    using Base::f; // { dg-error "redeclaration" }

    using Base::type; // { dg-message "previous declaration" }
    using Base::type; // { dg-error "redeclaration" }

    using Base::Type; // { dg-message "previous declaration" }
    using Base::Type; // { dg-error "redeclaration" }

    using Base::i; // { dg-message "previous declaration" }
    using Base::i; // { dg-error "redeclaration" }

    using Base::j; // { dg-message "previous declaration" }
    using Base::j; // { dg-error "redeclaration" }
};

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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