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

#include <testfwk.h>

#ifdef __SDCC
#pragma std_c99
#endif

/* PR middle-end/34337 */

int
foo (int x)
{
  return ((x << 8) & 65535) | 255;
}

void
testTortureExecute (void)
{
  if (foo (0x32) != 0x32ff || foo (0x174) != 0x74ff)
    ASSERT (0);
  return;
}