URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [ext/] [visibility/] [warn2.C] - Rev 308
Go to most recent revision | Compare with Previous | Blame | View Log
// Complain when a class is specified with greater visibility than one of
// its members' types or bases.
// { dg-require-visibility "" }
namespace N __attribute ((__visibility__ ("hidden")))
{
struct A { };
}
struct B
{ // { dg-warning "visibility" }
N::A a;
};
struct C: public N::A { }; // { dg-warning "visibility" }
Go to most recent revision | Compare with Previous | Blame | View Log