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