aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/warn/Wsign-compare-6.C
blob: 1f8af664c7b68266bb086b626707cf28a33eb8fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/23608
// { dg-options "-Wsign-compare" }

#define FIVE 5

int main()
{
  int i = 5;
  int const ic = 5;

  i < 5u;  // { dg-warning "5:comparison between signed and unsigned" }
  ic < 5u;     
  FIVE < 5u;
}