[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / gcc.dg / pr56989.c
blobbeb980678b2ab9453fab2db2cabd777d500569a1
1 /* PR c/56989 */
2 /* { dg-do compile } */
4 extern void voidf (void);
5 extern int intf (void);
7 int
8 f (void)
10 if (intf () < 0
11 || voidf () < 0) /* { dg-error "10:void value not ignored as it ought to be" } */
12 return 1;
14 if (voidf () < 0 /* { dg-error "7:void value not ignored as it ought to be" } */
15 || intf () < 0)
16 return 1;
18 return 0;