* config/sparc/driver-sparc.c (cpu_names): Add SPARC-T5 entry.
[official-gcc.git] / gcc / testsuite / gcc.dg / visibility-23.c
blob0fa9ef4c3e24af00ca16a49512ba0e3ad2f22fb4
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*" } "*" { "" } } */
8 extern void foo () __attribute__((weak,visibility("hidden")));
9 int
10 main()
12 if (foo)
13 foo ();
14 return 0;