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

     1  void adjust_xy (short *, short *);
     2  
     3  struct adjust_template
     4  {
     5    short kx_x;
     6    short kx_y;
     7  };
     8  
     9  static struct adjust_template adjust = {1, 1};
    10  
    11  main ()
    12  {
    13    short x = 1, y = 1;
    14  
    15    adjust_xy (&x, &y);
    16  
    17    if (x != 2)
    18      abort ();
    19  
    20    exit (0);
    21  }
    22  
    23  void
    24  adjust_xy (x, y)
    25       short  *x;
    26       short  *y;
    27  {
    28    *x = adjust.kx_x * *x + adjust.kx_y * *y;
    29  }