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/] [prop1.C] - Rev 301
Compare with Previous | Blame | View Log
// Test for propagation of visibility through template arguments
// { dg-do compile }
// { dg-require-visibility "" }
// { dg-final { scan-hidden "_Z1fIN1N1AEEvT_" } }
// { dg-final { scan-hidden "_Z1hIXadL_ZN1N1iEEEEvv" } }
namespace N __attribute ((__visibility__ ("hidden")))
{
struct A { };
int i;
}
template <class T> void f (T) { }
template <int *I> void h() { }
void g()
{
N::A a;
f(a);
h<&N::i>();
}