aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr101642.c
blob: f8b96f0943dd6aa0b947961536c18b253cded755 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* PR middle-end/101642 */

int x;

unsigned short
foo (void)
{
  return __builtin_bswap16 (x) ? : 0;
}

int
bar (int x, int y)
{
  unsigned short a = __builtin_bswap16 ((unsigned short) x);
  unsigned short b = __builtin_bswap16 ((unsigned short) y);
  return a == b;
}