aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/attr-visible.c
blob: ce35e4e53ac88e832b42a7f7b1b43a3c1525d696 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#define __visible __attribute__((externally_visible))

__visible void foo(void)
{
}

int flag __visible;

/*
 * check-name: attr-visible
 * check-command: sparse -Wdecl $file
 */