summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/20071205-1.c
blob: fa19ec067c29d5934eb1b7fed8fbdaaedc6700a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* PR middle-end/34337 */

extern void abort (void);

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

int
main (void)
{
  if (foo (0x32) != 0x32ff || foo (0x174) != 0x74ff)
    abort ();
  return 0;
}