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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* PR target/32219 */
kono
parents:
diff changeset
2 /* { dg-do run } */
kono
parents:
diff changeset
3 /* { dg-require-visibility "" } */
kono
parents:
diff changeset
4 /* { dg-options "-O2 -fPIC" { target fpic } } */
kono
parents:
diff changeset
5 /* This test requires support for undefined weak symbols. This support
kono
parents:
diff changeset
6 is not available on hppa*-*-hpux*. The test is skipped rather than
kono
parents:
diff changeset
7 xfailed to suppress the warning that would otherwise arise. */
kono
parents:
diff changeset
8 /* { dg-skip-if "" { "hppa*-*-hpux*" "*-*-aix*" "*-*-darwin*" } } */
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 extern void foo () __attribute__((weak,visibility("hidden")));
kono
parents:
diff changeset
11 int
kono
parents:
diff changeset
12 main()
kono
parents:
diff changeset
13 {
kono
parents:
diff changeset
14 if (foo)
kono
parents:
diff changeset
15 foo ();
kono
parents:
diff changeset
16 return 0;
kono
parents:
diff changeset
17 }