PR lto/84212 - -Wno-* does not disable warnings from -flto link stage
[official-gcc.git] / gcc / testsuite / g++.dg / warn / Wsign-compare-4.C
blobe92ab137e3b8c1fe385c2fafde7aba859c6b3314
1 //PR c++/50012
2 // { dg-options "-Wsign-compare" }
4 int foo(unsigned int *a, int b)
6   return (*a) <= b; // { dg-warning "comparison of integer expressions of different signedness" }
9 int bar(unsigned int *a, int b)
11   return *a <= b; // { dg-warning "comparison of integer expressions of different signedness" }