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/] [warn2.C] - Rev 825
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