aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/overflow-2.c
blob: 23c22a65de14634f485779b3ea2dd16a4823a4cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-options "-std=c99 -pedantic-errors" } */

/* PR c/24599 */

int
main (void)
{
  if ((_Bool)(__INT_MAX__ + 1)) /* { dg-warning "overflow in expression" } */
    return 1;
  else
    return 0;
}