aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/Wsign-conversion-1.c
blob: 20b6e999b2fa232d8148c88d1dd76df0ce603179 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* PR c++/52703 */
/* { dg-options -Wsign-conversion } */

unsigned f (unsigned x) {
  return x;
}

int main () {
  unsigned short a = 0;
  unsigned b = a + 1;
  f (a + 1);
  return 0;
}