summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/attr-weak-hidden-1.c
blob: b8d75d9c7caa850e1142a9946b0e81bfb986fcf2 (plain)
1
2
3
4
5
6
/* { dg-do run } */
/* { dg-require-weak "" } */
/* { dg-require-visibility "" } */
/* { dg-options "-O2" } */
/* { dg-additional-sources "attr-weak-hidden-1a.c" } */
int __attribute__((visibility("hidden"))) foo (void) { return 0; }