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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [parse/] [attr3.C] - Rev 693

Compare with Previous | Blame | View Log

// PR c++/39219

enum __attribute__ ((deprecated)) E { e };
struct S { enum __attribute__ ((deprecated)) F { f = e }; };

int main () {
    E x;        // { dg-warning "'E' is deprecated" "" }
    x = e;

    S::F y;     // { dg-warning "'F' is deprecated" "" }
    y = S::f;

    return x + y;
}

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.