summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/visibility-14.c
blob: 1c01f8399dbd98e492dff1e7045e51eccef23adf (plain)
1
2
3
4
5
6
7
8
9
10
/* Test that called external functions are marked. */
/* { dg-do compile } */
/* { dg-skip-if "" { *-*-darwin* } { "*" } { "" } } */
/* { dg-require-visibility "" } */
/* { dg-final { scan-hidden "foo" } } */

extern void foo(void) __attribute__ ((visibility ("hidden")));
int f () {
 foo();
}