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: cond-address-function
12 * check-command: test-linearize -Wno-decl -Waddress $file
13 * check-output-ignore
14 *
15 * check-error-start
16 cond-address-function.c:5:13: warning: the address of a function will always evaluate as true
17 * check-error-end
18 */