summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20050104-1.c
blob: 6083e9c0686f006e4e0572df3e6e155573dced28 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* PR tree-optimization/19060 */

void abort (void);

static
long long min ()
{
  return -__LONG_LONG_MAX__ - 1;
}

void
foo (long long j)
{
  if (j > 10 || j < min ())
    abort ();
}

int
main (void)
{
  foo (10);
  return 0;
}