1 2 3 4 5 6 7
/* { dg-do compile } */ /* { dg-options "-O2 -Woverflow" } */ #include <limits.h> int foo = INT_MAX + 1; /* { dg-warning "integer overflow" } */