URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [g++.dg/] [parse/] [attr3.C] - Rev 516
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;
}