Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/visibility-23.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* PR target/32219 */ |
2 /* { dg-do compile } */ | |
3 /* { dg-require-visibility "" } */ | |
4 /* { dg-final { scan-hidden "foo" } } */ | |
5 /* { dg-options "-O2 -fPIC" { target fpic } } */ | |
6 /* { dg-skip-if "" { "hppa*-*-hpux*" "*-*-aix*" "*-*-darwin*" } } */ | |
7 | |
8 extern void foo () __attribute__((weak,visibility("hidden"))); | |
9 int | |
10 main() | |
11 { | |
12 if (foo) | |
13 foo (); | |
14 return 0; | |
15 } |