Sha256: 0cfa1b19658a5fb944fc4a998161188303be4790f400756a33daf752d3249878

Contents?: true

Size: 853 Bytes

Versions: 5936

Compression:

Stored size: 853 Bytes

Contents

/* Area:	ffi_call
   Purpose:	Check return value long long.
   Limitations:	none.
   PR:		none.
   Originator:	From the original ffitest.c  */

/* { dg-do run } */
#include "ffitest.h"
static long long return_ll(long long ll)
{
  return ll;
}

int main (void)
{
  ffi_cif cif;
  ffi_type *args[MAX_ARGS];
  void *values[MAX_ARGS];
  long long rlonglong;
  long long ll;

  args[0] = &ffi_type_sint64;
  values[0] = ≪

  /* Initialize the cif */
  CHECK(ffi_prep_cif(&cif, FFI_DEFAULT_ABI, 1,
		     &ffi_type_sint64, args) == FFI_OK);

  for (ll = 0LL; ll < 100LL; ll++)
    {
      ffi_call(&cif, FFI_FN(return_ll), &rlonglong, values);
      CHECK(rlonglong == ll);
    }

  for (ll = 55555555555000LL; ll < 55555555555100LL; ll++)
    {
      ffi_call(&cif, FFI_FN(return_ll), &rlonglong, values);
      CHECK(rlonglong == ll);
    }
  exit(0);
}

Version data entries

5,936 entries across 5,912 versions & 70 rubygems

Version Path
classiccms-0.4.0 vendor/bundle/gems/ffi-1.0.11/ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
classiccms-0.3.9 vendor/bundle/gems/ffi-1.0.11/ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/ffi-1.0.11/ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/ffi-1.0.11/ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/ffi-1.0.11/ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/ffi-1.0.11/ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
classiccms-0.3.8 vendor/bundle/gems/ffi-1.0.11/ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
classiccms-0.3.7 vendor/bundle/gems/ffi-1.0.11/ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
classiccms-0.3.6 vendor/bundle/gems/ffi-1.0.11/ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
classiccms-0.3.5 vendor/bundle/gems/ffi-1.0.11/ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
classiccms-0.3.4 vendor/bundle/gems/ffi-1.0.11/ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
classiccms-0.3.3 vendor/bundle/gems/ffi-1.0.11/ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
classiccms-0.3.2 vendor/bundle/gems/ffi-1.0.11/ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
classiccms-0.3.1 vendor/bundle/gems/ffi-1.0.11/ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
classiccms-0.3.0 vendor/bundle/gems/ffi-1.0.11/ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/ffi-1.0.11/ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/ffi-0.6.3/ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/ffi-1.0.11/ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
ftl-0.2.0 vendor/bundle/gems/ffi-1.0.11/ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
classiccms-0.2.4.pre vendor/bundle/gems/ffi-1.0.11/ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c