OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [warn/] [Wconversion1.C] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-options "-fsigned-char -Wsign-conversion" }
2
 
3
char c1 = 1024; // { dg-warning "overflow" }
4
char c2 = char(1024);
5
char c3 = (char) 1024;
6
char c4 = static_cast(1024);
7
 
8
unsigned char uc1 = -129; // { dg-warning "unsigned" }
9
 
10
bool b1 = -3;
11
 
12
int i1 = 0x80000000; // { dg-warning "conversion" }

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.