view gcc/testsuite/gfortran.dg/ISO_Fortran_binding_9.c @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 1830386684a0
children
line wrap: on
line source

/* Test fix of a problem with CFI_is_contiguous.  */

/* Contributed by Gilles Gouaillardet  <gilles@rist.or.jp> */

#include "../../../libgfortran/ISO_Fortran_binding.h"
#include <stdlib.h>

int cdesc_c(CFI_cdesc_t* x, long *expected)
{
  int res;
  res = CFI_is_contiguous (x);
  if (x->base_addr != (void *)*expected) res = 0;
  return res;
}