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
Update ChangeLog and version files for release
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
warn
/
Wsign-compare-6.C
blob
1f8af664c7b68266bb086b626707cf28a33eb8fb
1
// PR c++/23608
2
// { dg-options "-Wsign-compare" }
3
4
#define FIVE 5
5
6
int main()
7
{
8
int i = 5;
9
int const ic = 5;
10
11
i < 5u; // { dg-warning "5:comparison between signed and unsigned" }
12
ic < 5u;
13
FIVE < 5u;
14
}