Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
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
);
}