summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-20030403-1.c
blob: 0c7626f5c9061456c8cae0a4e728e36609825712 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
   20030403-1.c from the execute part of the gcc torture tests.
 */

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

/* The non-destructive folder was always emitting >= when folding
   comparisons to signed_max+1.  */

#include <limits.h>

void
testTortureExecute (void)
{
  unsigned long count = 8;

  if (count > INT_MAX)
    ASSERT (0);

  return;
}