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