view gcc/testsuite/gcc.dg/pr56989.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* PR c/56989 */
/* { dg-do compile } */

extern void voidf (void);
extern int intf (void);

int
f (void)
{
  if (intf () < 0
      || voidf () < 0) /* { dg-error "10:void value not ignored as it ought to be" } */
    return 1;

  if (voidf () < 0 /* { dg-error "7:void value not ignored as it ought to be" } */
      || intf () < 0)
    return 1;

  return 0;
}