Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wtype-limits3.C
blob: b9059ac488e805a195fad1a1df4e7ffb51c610f4 [
file
] [
log
] [
blame
]
// PR c++/82521
// { dg-additional-options "-Wtype-limits" }
template
<
typename
T
>
const
char
*
g
(
const
unsigned
char
value
)
{
return
value
==
-
1
?
"-1"
:
"no"
;
// { dg-warning "always false" }
}
int
main
()
{
g
<int>
(-
1
);
}