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
ffi-1.0.2-x86-mingw32 ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
ffi-1.0.2 ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
ffi-1.0.1-x86-mingw32 ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
ffi-1.0.1 ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
ffi-1.0.0 ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
ffi-aitrus-0.9.0.beta ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
ffi-0.6.3-x86-mingw32 ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
ffi-0.6.3-x86-mswin32 ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
ffi-0.6.3 ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
ffi-0.6.2 ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
ffi-0.6.1 ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
ffi-0.6.0 ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
ffi-0.5.4-x86-mswin32 ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
ffi-0.5.4-x86-mingw32 ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
ffi-0.5.4 ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
ffi-0.5.3-x86-mswin32 ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
ffi-0.5.3 ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
ffi-0.5.3-x86-mingw32 ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
minilab-1.1.0-x86-mswin32-60 vendor/ffi-0.4.0-x86-mswin32/ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c
ffi-0.5.1-x86-mswin32 ext/ffi_c/libffi/testsuite/libffi.call/return_ll.c