repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wconversion1.C
blob
203b90eef6554899adbd900c29ee5253aa0c5bd2
1
// { dg-options "-fsigned-char -Wconversion" }
2
3
char c1 = 1024; // { dg-warning "overflow" }
4
char c2 = char(1024);
5
char c3 = (char) 1024;
6
char c4 = static_cast<char>(1024);
7
8
unsigned char uc1 = -129; // { dg-warning "unsigned" }
9
10
bool b1 = -3;
11
12
int i1 = 0x80000000;