URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [ext/] [visibility/] [redecl1.C] - Rev 149
Go to most recent revision | Compare with Previous | Blame | View Log
// Test that we complain about redeclaration with different visibility
struct __attribute((visibility("hidden"))) B;
struct __attribute((visibility("default"))) B; // { dg-warning "visibility" }
__attribute ((visibility ("hidden"))) void f(); // { dg-warning "previous" }
__attribute ((visibility ("default"))) void f(); // { dg-warning "visibility" }
Go to most recent revision | Compare with Previous | Blame | View Log