aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/execute/pr42269-2.c
blob: a9410d442e9ea223262c0d26172b697c3d328de4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* Make sure that language + abi extensions in passing S interoperate.  */

static long long __attribute__((noinline))
foo (unsigned short s)
{
  return (short) s;
}

unsigned short s = 0xFFFF;

int
main (void)
{
  return foo (s) + 1 != 0;
}