URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Wconversion4.C] - Rev 801
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/45385
// { dg-options "-Wconversion" }
void foo(unsigned char);
class Test
{
void eval()
{
foo(bar()); // { dg-warning "may alter its value" }
}
unsigned int bar() const
{
return __INT_MAX__ * 2U + 1;
}
};
Go to most recent revision | Compare with Previous | Blame | View Log