OpenCores
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 308

Go to most recent revision | 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>();
}

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.