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/] [anon8.C] - Rev 308
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/34213
// { dg-do compile }
template <void (*fn) ()>
void call ()
{
fn ();
}
namespace
{
struct B1
{
static void fn1 () {}
static void fn4 ();
};
void fn3 () {}
void B1::fn4 () {}
static void fn5 () {}
}
int main ()
{
struct B2
{
static void fn2 () {}
};
call<&B1::fn1> ();
call<&B2::fn2> (); // { dg-error "not external linkage|no matching" }
call<&fn3> ();
call<&B1::fn4> ();
call<&fn5> (); // { dg-error "not external linkage|no matching" }
}
Go to most recent revision | Compare with Previous | Blame | View Log