summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/pr47299.c
blob: 4f3d1f9cb12a13a474ffaf88bc7edd0c704f8a83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* PR rtl-optimization/47299 */

extern void abort (void);

__attribute__ ((noinline, noclone)) unsigned short
foo (unsigned char x)
{
  return x * 255;
}

int
main ()
{
  if (foo (0x40) != 0x3fc0)
    abort ();
  return 0;
}