blob: 26fd00fbbe95bb29ed4fb000ff127e67e19282bf [file] [log] [blame]
/* { dg-do run } */
/* { dg-options "-fsanitize=undefined" } */
extern void abort (void);
int
main (void)
{
int halfmaxval = __INT_MAX__ / 2 + 1;
int maxval = halfmaxval - 1 + halfmaxval;
if (maxval != __INT_MAX__)
abort ();
return 0;
}