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/] [template6.C] - Rev 825
Go to most recent revision | Compare with Previous | Blame | View Log
// Test for explicit visibility taking precedence
// { dg-require-visibility "" }
// { dg-final { scan-not-hidden "_ZN1AIiE1fEv" } }
template <class T> struct A
{
// This attribute takes precedence over...
__attribute ((visibility ("default"))) void f ();
};
template <class T>
void A<T>::f ()
{ }
// ...this attribute.
template struct __attribute ((visibility ("hidden"))) A<int>;
Go to most recent revision | Compare with Previous | Blame | View Log