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/] [class1.C] - Blame information for rev 308

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

Line No. Rev Author Line
1 301 jeremybenn
// PR c++/26905
2
// Init should not be hidden, so calling it should use the PLT.
3
 
4
// { dg-options "-fpic" }
5
// { dg-do compile { target i?86-*-* x86_64-*-* } }
6
// { dg-skip-if "" { *-*-darwin* } { "*" } { "" } }
7
// { dg-require-visibility "" }
8
// { dg-require-effective-target fpic }
9
// { dg-final { scan-assembler "InitEv@PLT" } }
10
 
11
#pragma GCC visibility push(hidden)
12
struct __attribute__ ((visibility ("default"))) nsINIParser
13
{
14
    static void Init();
15
};
16
 
17
__attribute__ ((visibility ("default")))
18
void
19
CheckCompatibility(void)
20
{
21
  nsINIParser::Init();
22
}

powered by: WebSVN 2.1.0

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