3 #include "static-chain.h"
5 #if defined(__GNUC__) && !defined(__clang__) && defined(STATIC_CHAIN_REG)
9 /* Blatent assumption here that the prologue doesn't clobber the
10 static chain for trivial functions. If this is not true, don't
11 define STATIC_CHAIN_REG, and we'll test what we can via other tests. */
14 register void *chain
__asm__(STATIC_CHAIN_REG
);
23 CHECK(ffi_prep_cif(&cif
, ABI_NUM
, 0, &ffi_type_pointer
, NULL
) == FFI_OK
);
25 ffi_call_go(&cif
, FFI_FN(doit
), &result
, NULL
, &result
);
27 CHECK(result
== &result
);
32 #else /* UNSUPPORTED */
33 int main() { return 0; }