view gcc/testsuite/gcc.c-torture/compile/dilayout.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
line wrap: on
line source

struct ii
{
  int a;
  int b;
};

struct foo
{
  int a;
  struct ii ab;
  int b;
};

struct ii
foo (int *p, struct foo a)
{
  p[0] = a.a;
  p[1] = a.ab.a;
  p[2] = a.ab.b;
  p[3] = a.b;
  return a.ab;
}

str (struct ii ab, struct ii *p)
{
  *p = ab;
}

ll (long long ab, long long *p)
{
  *p = ab;
}