aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/ubsan/div-by-zero-4.c
blob: 02162e139e30518d71bcd9b282eca3afdeab2733 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do run } */
/* { dg-options "-fsanitize=integer-divide-by-zero -Wno-overflow" } */

#define INT_MIN (-__INT_MAX__ - 1)

int
main (void)
{
  /* This should not fail.  */
  return (unsigned int) INT_MIN / -1;
}