summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/gcc.dg/Wconversion-3.c
blob: d45749d69c0670b2b09e8764e24a21ba694e173a (plain)
1
2
3
4
5
/* { dg-do compile } */
/* { dg-options "-O2 -Wconversion" } */

unsigned f(unsigned a) { return a + -1; }  /* { dg-warning "negative" } */

OpenPOWER on IntegriCloud