modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/compile/dilayout.c (about)

     1  struct ii
     2  {
     3    int a;
     4    int b;
     5  };
     6  
     7  struct foo
     8  {
     9    int a;
    10    struct ii ab;
    11    int b;
    12  };
    13  
    14  struct ii
    15  foo (int *p, struct foo a)
    16  {
    17    p[0] = a.a;
    18    p[1] = a.ab.a;
    19    p[2] = a.ab.b;
    20    p[3] = a.b;
    21    return a.ab;
    22  }
    23  
    24  str (struct ii ab, struct ii *p)
    25  {
    26    *p = ab;
    27  }
    28  
    29  ll (long long ab, long long *p)
    30  {
    31    *p = ab;
    32  }
    33