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

__visible void foo(void)
{
}

int flag __visible;

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