blob: b3eb8e2a7de7b020594fbb2f788fd9f8ecf9610b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//PR c++/50012
// { dg-options "-Wsign-compare" }
int foo(unsigned int *a, int b)
{
return (*a) <= b; // { dg-warning "comparison between signed and unsigned" }
}
int bar(unsigned int *a, int b)
{
return *a <= b; // { dg-warning "comparison between signed and unsigned" }
}
|