PR middle-end/77674
[official-gcc.git] / gcc / testsuite / g++.dg / warn / Wsign-compare-7.C
blob51f13f6f953cd279b0800feb860fc379d3e5645f
1 // PR c++/59231
2 // { dg-options "-Wsign-compare" }
4 template<class X, class Y>
5 bool equals(X x, Y y)
7     return (x == y);            // { dg-warning "signed" }
10 int main()
12   unsigned long x = 2;
13   signed int y = 2;
15   if(!equals (x, y))
16     return 1;
17   return 0;