Debian Codegraph @

gcc/testsuite/g++.dg/warn/Wtype-limits5.C

raw
1 // PR c++/96742
2 // { dg-additional-options "-Wtype-limits" }
3
4 template <unsigned N>
5 bool f(unsigned x) {
6 return unsigned(x < N);
7 }
8
9 int main() {
10 f<0>(1);
11 }