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;
}
};