Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/visibility-22.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 84e7813d76e9 |
rev | line source |
---|---|
111 | 1 /* PR target/32219 */ |
2 /* { dg-do run } */ | |
3 /* { dg-require-visibility "" } */ | |
4 /* { dg-options "-O2 -fPIC" { target fpic } } */ | |
5 /* This test requires support for undefined weak symbols. This support | |
6 is not available on hppa*-*-hpux*. The test is skipped rather than | |
7 xfailed to suppress the warning that would otherwise arise. */ | |
8 /* { dg-skip-if "" { "hppa*-*-hpux*" "*-*-aix*" "*-*-darwin*" } } */ | |
9 | |
10 extern void foo () __attribute__((weak,visibility("hidden"))); | |
11 int | |
12 main() | |
13 { | |
14 if (foo) | |
15 foo (); | |
16 return 0; | |
17 } |