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] - Blame information for rev 516

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 301 jeremybenn
// Test for explicit visibility taking precedence
2
 
3
// { dg-require-visibility "" }
4
// { dg-final { scan-not-hidden "_ZN1AIiE1fEv" } }
5
 
6
template  struct A
7
{
8
  // This attribute takes precedence over...
9
  __attribute ((visibility ("default"))) void f ();
10
};
11
 
12
template 
13
void A::f ()
14
{ }
15
 
16
// ...this attribute.
17
template struct __attribute ((visibility ("hidden"))) A;

powered by: WebSVN 2.1.0

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