1 /* { dg-options "-Wint-in-bool-context" } */
2 /* { dg-do compile } */
5 typedef unsigned char u8
;
8 int foo (u8 plen
, u32 key
)
10 if ((plen
< KEYLENGTH
) && (key
<< plen
)) /* { dg-bogus "boolean context" } */
13 if ((plen
<< KEYLENGTH
) && (key
< plen
)) /* { dg-warning "boolean context" } */