| 1 |
// 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 |
} |