Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.c-torture / execute / vrp-6.c
blob7c6a1750f7d8aae4b5d2068f1ecf640f6f28357a
1 #include <limits.h>
3 extern void exit (int);
4 extern void abort ();
6 void test01(unsigned int a, unsigned int b)
8 if (a < 5)
9 abort();
10 if (b < 5)
11 abort();
12 if (a - b != 5)
13 abort();
16 void test02(unsigned int a, unsigned int b)
18 if (a >= 12)
19 if (b > 15)
20 if (a - b < UINT_MAX - 15U)
21 abort ();
24 int main(int argc, char *argv[])
26 unsigned x = 0x80000000;
27 test01(x + 5, x);
28 test02(14, 16);
29 exit (0);