blob: e92ab137e3b8c1fe385c2fafde7aba859c6b3314 [file] [log] [blame]
//PR c++/50012
// { dg-options "-Wsign-compare" }
int foo(unsigned int *a, int b)
{
return (*a) <= b; // { dg-warning "comparison of integer expressions of different signedness" }
}
int bar(unsigned int *a, int b)
{
return *a <= b; // { dg-warning "comparison of integer expressions of different signedness" }
}