view gcc/testsuite/gcc.c-torture/execute/pr93402.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 1830386684a0
children
line wrap: on
line source

/* PR rtl-optimization/93402 */

struct S { unsigned int a; unsigned long long b; };

__attribute__((noipa)) struct S
foo (unsigned long long x)
{
  struct S ret;
  ret.a = 0;
  ret.b = x * 11111111111ULL + 111111111111ULL;
  return ret;
}

int
main ()
{
  struct S a = foo (1);
  if (a.a != 0 || a.b != 122222222222ULL)
    __builtin_abort ();
  return 0;
}