summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr40753.c
blob: 507303dac7206866037980044c661ef61080c207 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
typedef struct {
    unsigned nargs;
} ffi_cif;
typedef struct {
    char tramp[24];
    ffi_cif *cif;
} ffi_closure;
extern void *memcpy (void *, const void *, __SIZE_TYPE__);
extern void ffi_closure_LINUX64 (void);

int
ffi_prep_closure_loc (ffi_closure *closure, ffi_cif *cif)
{
  void **tramp = (void **) &closure->tramp[0];

  memcpy (tramp, (char *) ffi_closure_LINUX64, 16);
  closure->cif = cif;

  return 0;
}