1 int foo(void) {
   2         extern int a[];
   3 
   4         if (a)
   5                 return 1;
   6         return 0;
   7 }
   8 
   9 int bar(void) {
  10         int a[2];
  11 
  12         if (a)
  13                 return 1;
  14         return 0;
  15 }
  16 
  17 /*
  18  * check-name: cond-address-array.c
  19  * check-command: test-linearize -Wno-decl -Waddress $file
  20  * check-output-ignore
  21  *
  22  * check-error-start
  23 cond-address-array.c:4:13: warning: the address of an array will always evaluate as true
  24 cond-address-array.c:12:13: warning: the address of an array will always evaluate as true
  25  * check-error-end
  26  */