Woverflow-1.c   [plain text]


/* { dg-do compile } */
/* { dg-options "-O2" } */

#include <limits.h>

int foo = INT_MAX + 1;  /* { dg-warning "integer overflow" } */