URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Wconversion1.C] - Rev 307
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-options "-fsigned-char -Wsign-conversion" }
char c1 = 1024; // { dg-warning "overflow" }
char c2 = char(1024);
char c3 = (char) 1024;
char c4 = static_cast<char>(1024);
unsigned char uc1 = -129; // { dg-warning "unsigned" }
bool b1 = -3;
int i1 = 0x80000000; // { dg-warning "conversion" }
Go to most recent revision | Compare with Previous | Blame | View Log