summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/warn/Wsign-compare-1.C
blob: 495bb992cdd0e90d94915af2030de10f89be3ff9 (plain)
1
2
3
4
5
6
// { dg-options "-Wsign-compare" }

extern unsigned u;

template<class F>
int f() { return u > 1; }