1 /* PR middle-end/40172 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wall -W -Werror -Wlogical-op" } */
6 typedef struct rtx_def *rtx;
15 if (((rtx) 0 != (rtx) 0) && xxx ? foo : bar)
17 else if ((foo & 0) && xxx)
25 if (((int) 0 != (int) 0) && bar ? foo : xxx)
27 else if (0 != 0 && foo ? xxx : bar)