Sha256: dfd5ada446cbe8d4b13f9109cd685014788752eeb24870023dc0de57dc7f9081

Contents?: true

Size: 723 Bytes

Versions: 5649

Compression:

Stored size: 723 Bytes

Contents

/* { dg-do run } */

#include "static-chain.h"

#if defined(__GNUC__) && !defined(__clang__) && defined(STATIC_CHAIN_REG)

#include "ffitest.h"

/* Blatent assumption here that the prologue doesn't clobber the
   static chain for trivial functions.  If this is not true, don't
   define STATIC_CHAIN_REG, and we'll test what we can via other tests.  */
void *doit(void)
{
  register void *chain __asm__(STATIC_CHAIN_REG);
  return chain;
}

int main()
{
  ffi_cif cif;
  void *result;

  CHECK(ffi_prep_cif(&cif, ABI_NUM, 0, &ffi_type_pointer, NULL) == FFI_OK);

  ffi_call_go(&cif, FFI_FN(doit), &result, NULL, &result);

  CHECK(result == &result);

  return 0;
}

#else /* UNSUPPORTED */
int main() { return 0; }
#endif

Version data entries

5,649 entries across 5,631 versions & 42 rubygems

Version Path
ffi-1.10.0 ext/ffi_c/libffi/testsuite/libffi.go/aa-direct.c
tdiary-5.0.11 vendor/bundle/gems/ffi-1.9.25/ext/ffi_c/libffi/testsuite/libffi.go/aa-direct.c
vagrant-unbundled-2.2.2.0 vendor/bundle/ruby/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/testsuite/libffi.go/aa-direct.c
vagrant-unbundled-2.2.0.0 vendor/bundle/ruby/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/testsuite/libffi.go/aa-direct.c
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/testsuite/libffi.go/aa-direct.c
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/testsuite/libffi.go/aa-direct.c
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/testsuite/libffi.go/aa-direct.c
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/testsuite/libffi.go/aa-direct.c
vagrant-unbundled-2.1.4.0 vendor/bundle/ruby/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/testsuite/libffi.go/aa-direct.c
vagrant-unbundled-2.1.2.0 vendor/bundle/ruby/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/testsuite/libffi.go/aa-direct.c
cloudsmith-api-0.30.7 vendor/bundle/ruby/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/testsuite/libffi.go/aa-direct.c
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/testsuite/libffi.go/aa-direct.c
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/ffi-1.9.25/ext/ffi_c/libffi/testsuite/libffi.go/aa-direct.c
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/ffi-1.9.25/ext/ffi_c/libffi/testsuite/libffi.go/aa-direct.c
tdiary-5.0.9 vendor/bundle/gems/ffi-1.9.23/ext/ffi_c/libffi/testsuite/libffi.go/aa-direct.c
color_me_shop-1.0.0 vendor/bundle/ruby/2.5.0/gems/ffi-1.9.25/ext/ffi_c/libffi/testsuite/libffi.go/aa-direct.c
ffi-1.9.25 ext/ffi_c/libffi/testsuite/libffi.go/aa-direct.c
ffi-1.9.24 ext/ffi_c/libffi/testsuite/libffi.go/aa-direct.c
vagrant-unbundled-2.1.1.0 vendor/bundle/ruby/2.5.0/gems/ffi-1.9.23/ext/ffi_c/libffi/testsuite/libffi.go/aa-direct.c
vagrant-unbundled-2.0.4.0 vendor/bundle/ruby/2.5.0/gems/ffi-1.9.23/ext/ffi_c/libffi/testsuite/libffi.go/aa-direct.c