summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-20000717-2.c
blob: b6a32960b8190b84768b1229cce3794b12ce9184 (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
28
29
30
/*
   20000717-2.c from the execute part of the gcc torture tests.
 */

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

// Some ports do not support long long yet.
#if !defined(__SDCC_pic14) && !defined(__SDCC_pic16)
static void
compare (long long foo)
{
  if (foo < 4294967297LL)
    ASSERT (0);
}
#endif

void
testTortureExecute (void)
{
// Some ports do not support long long yet.
#if !defined(__SDCC_pic14) && !defined(__SDCC_pic16)
  compare (8589934591LL);
  return;
#endif
}