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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [ext/] [visibility/] [template6.C] - Rev 154

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.