1 extern void func(void);
2 
3 int global_function(void)
4 {
5 	if (func)
6 		return 1;
7 	return 0;
8 }
9 
10 /*
11  * check-name: Waddress-function
12  * check-command: sparse -Wno-decl -Waddress $file
13  *
14  * check-error-start
15 Waddress-function.c:5:13: warning: the address of a function will always evaluate as true
16  * check-error-end
17  */
18