summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/Woverflow-1.c
blob: 064af4561eaa6a710043afdcefd01d1a464b3eda (plain)
1
2
3
4
5
6
7
/* { dg-do compile } */
/* { dg-options "-O2" } */

#include <limits.h>

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