OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [g++.dg/] [ext/] [visibility/] [template6.C] - Rev 516

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>;

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.