summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-20060127-1.c
blob: 25df3dac5dbb651cdaf8b85fafc2ca58c2cefdde (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
31
/*
   20060127-1.c from the execute part of the gcc torture suite.
 */

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

// TODO: Enable when long long comes to these ports!
#if !defined(__SDCC_pic14) && !defined(__SDCC_pic16)
void
f (long long a)
{
  if ((a & 0xffffffffLL) != 0)
    ASSERT (0);
}

long long a = 0x1234567800000000LL;
#endif

void
testTortureExecute (void)
{
#if !defined (__SDCC_mcs51)
  f (a);
  return;
#endif
}