(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
pr56989.c
       1  /* PR c/56989 */
       2  /* { dg-do compile } */
       3  
       4  extern void voidf (void);
       5  extern int intf (void);
       6  
       7  int
       8  f (void)
       9  {
      10    if (intf () < 0
      11        || voidf () < 0) /* { dg-error "10:void value not ignored as it ought to be" } */
      12      return 1;
      13  
      14    if (voidf () < 0 /* { dg-error "7:void value not ignored as it ought to be" } */
      15        || intf () < 0)
      16      return 1;
      17  
      18    return 0;
      19  }