2 /* { dg-do compile } */
3 /* { dg-options "-Wlogical-op -Wtype-limits" } */
8 return 0ULL > p
; /* { dg-warning "15:comparison is always false due to limited range of data type" } */
14 return 0ULL <= p
; /* { dg-warning "15:comparison is always true due to limited range of data type" } */
20 return p
>= 0U; /* { dg-warning "12:comparison of unsigned expression >= 0 is always true" } */
26 return p
< 0U; /* { dg-warning "12:comparison of unsigned expression < 0 is always false" } */
32 return p
|| !p
; /* { dg-warning "12:logical" } */
38 return p
&& !p
; /* { dg-warning "12:logical" } */