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] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/39219
2
 
3
enum __attribute__ ((deprecated)) E { e };
4
struct S { enum __attribute__ ((deprecated)) F { f = e }; };
5
 
6
int main () {
7
    E x;        // { dg-warning "'E' is deprecated" "" }
8
    x = e;
9
 
10
    S::F y;     // { dg-warning "'F' is deprecated" "" }
11
    y = S::f;
12
 
13
    return x + y;
14
}

powered by: WebSVN 2.1.0

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