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

     1  typedef struct {
     2      unsigned nargs;
     3  } ffi_cif;
     4  typedef struct {
     5      char tramp[24];
     6      ffi_cif *cif;
     7  } ffi_closure;
     8  extern void *memcpy (void *, const void *, __SIZE_TYPE__);
     9  extern void ffi_closure_LINUX64 (void);
    10  
    11  int
    12  ffi_prep_closure_loc (ffi_closure *closure, ffi_cif *cif)
    13  {
    14    void **tramp = (void **) &closure->tramp[0];
    15  
    16    memcpy (tramp, (char *) ffi_closure_LINUX64, 16);
    17    closure->cif = cif;
    18  
    19    return 0;
    20  }