Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wconversion4.C
blob: d1e0f4ad4edff173129545e96758217a49be5eb5 [
file
] [
log
] [
blame
]
// PR c++/45385
// { dg-options "-Wconversion" }
void
foo
(
unsigned
char
);
class
Test
{
void
eval
()
{
foo
(
bar
());
// { dg-warning "may change value" }
}
unsigned
int
bar
()
const
{
return
__INT_MAX__
*
2U
+
1
;
}
};