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

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

long f (long x, long y)
{
  return (x > 1) ? y : (y & 1);
}

void
testTortureExecute (void)
{
  if (f (2L, 0xdecadeL) != 0xdecadeL)
    ASSERT (0);
  return;
}