1 extern int var
__attribute__((weak
));
2 extern int arr
[] __attribute__((weak
));
3 extern int fun(void) __attribute__((weak
));
5 int test_addr_weak_fun(void)
23 * check-name: Waddress-weak
24 * check-note: Undefined weak symbols (can) have a null address.
25 * check-command: sparse -Wno-decl -Waddress $file