summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/visibility-b.c
blob: b1f15758aa2d78b02ef033cc4629872036dd4501 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do assemble { target *-*-darwin* } } */

#define __private_extern__ extern __attribute__((visibility ("hidden")))

__private_extern__ int n;

int
mach_error_type(int sub)
{
 if (sub >= n)
     return 1;
 return 0;
}