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/] [fvisibility-inlines-hidden-3.C] - Blame information for rev 154

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
/* { dg-require-visibility "" } */
3
/* { dg-options "-fvisibility-inlines-hidden" } */
4
/* { dg-final { scan-not-hidden "_ZN1IIiE3fooEv" } } */
5
/* { dg-final { scan-not-hidden "_ZN1OIiE3fooEv" } } */
6
/* { dg-final { scan-hidden "_ZN1S3fooEv" } } */
7
 
8
template 
9
struct O {
10
  static inline void foo() { }
11
};
12
 
13
template void O::foo();
14
 
15
template 
16
struct I {
17
  static inline void foo() { }
18
};
19
 
20
extern template void I::foo();
21
 
22
struct S {
23
  static inline void foo() { }
24
};
25
 
26
void bar() {
27
  I::foo();
28
  O::foo();
29
  S::foo();
30
}

powered by: WebSVN 2.1.0

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