blob: c05742c5baa75716bd3ee2297f1d31b9236da65c [file] [log] [blame]
Egor Pasko167ac2b2010-05-18 12:26:511/* PR middle-end/38934 */
2/* { dg-do compile } */
3/* { dg-options "-O2 -std=gnu99 -w" } */
4
5/* This variable needed only to work around earlier optimizations than VRP. */
6unsigned char g;
7
8extern void abort ();
9
10void
11f (long long int p)
12{
13 g = 255;
14 if (p >= -9223372036854775808LL - (signed char) g)
15 p = 1;
16
17 if (p)
18 abort ();
19}