1 /*
2    20031020-1.c from the execute part of the gcc torture tests.
3  */
4 
5 #include <testfwk.h>
6 
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
10 
11 /* PR target/12654
12    The Alpha backend tried to do a >= 1024 as (a - 1024) >= 0, which fails
13    for very large negative values.  */
14 /* Origin: tg@swox.com  */
15 
16 #include <limits.h>
17 
18 void
foo(long x)19 foo (long x)
20 {
21   if (x >= 1024)
22     ASSERT (0);
23 }
24 
25 void
testTortureExecute(void)26 testTortureExecute (void)
27 {
28   foo (LONG_MIN);
29   foo (LONG_MIN + 10000);
30   return;
31 }
32 
33