repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix broken MinGW build of gcc.c
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wconversion1.C
blob
48e319ad66f0db201f081deb041ce00adbb9e108
1
// { 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<char>(1024);
7
8
unsigned char uc1 = -129; // { dg-warning "unsigned" }
9
10
bool b1 = -3;
11
12
int i1 = 0x80000000; // { dg-warning "conversion" }