summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-20081112-1.c
blob: b0c38c90f5f0a063b247dea655409aa8d60d7470 (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
27
/*
   20081112-1.c from the execute part of the gcc torture tests.
 */

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

#include <limits.h>

static void foo (int a)
{
  int b = (a - 1) + INT_MIN;

  if (b != INT_MIN)
    ASSERT (0);
}

void
testTortureExecute (void)
{
  foo (1);
  return;
}