Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/ISO_Fortran_binding_9.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
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; }