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

     1  #define NULL 0
     2  
     3  struct stuff
     4  {
     5      int a;
     6      int b;
     7      int c;
     8      int d;
     9      int e;
    10      char *f;
    11      int g;
    12  };
    13  
    14  void __attribute__ ((noinline))
    15  bar (struct stuff *x)
    16  {
    17    if (x->g != 2)
    18      __builtin_abort ();
    19  }
    20  
    21  int
    22  main (int argc, char** argv)
    23  {
    24    struct stuff x = {0, 0, 0, 0, 0, NULL, 0};
    25    x.a = 100;
    26    x.d = 100;
    27    x.g = 2;
    28    /* Struct should now look like {100, 0, 0, 100, 0, 0, 0, 2}.  */
    29    bar (&x);
    30    return 0;
    31  }