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