summaryrefslogtreecommitdiff
path: root/support/regression/tests/gcc-torture-execute-pr42269-2.c
blob: eb36fa954086c767e88d6b5624d95adc2244491f (plain)
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
/*
   pr42269-2.c from the execute part of the gcc torture tests.
 */

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

#if !defined(__SDCC_pic14) && !defined(__SDCC_pic16)
/* Make sure that language + abi extensions in passing S interoperate.  */

static long long
foo (unsigned short s)
{
  return (short) s;
}
#endif
unsigned short s = 0xFFFF;

void
testTortureExecute (void)
{
#if !defined(__SDCC_pic14) && !defined(__SDCC_pic16)
  ASSERT (!(foo (s) + 1 != 0));
#endif
}