nvptx, libgfortran: Switch out of "minimal" mode
[official-gcc.git] / gcc / testsuite / gfortran.dg / ISO_Fortran_binding_12.c
blob0a41576aa5ef994c73291d896ae06062326e4922
1 /* Test the fix for PR90093. */
3 #include <stdio.h>
4 #include <math.h>
5 #include <ISO_Fortran_binding.h>
7 /* Contributed by Reinhold Bader <Bader@lrz.de> */
9 void foo_opt(CFI_cdesc_t *, float *, int *, int);
10 void write_res();
12 float x[34];
14 int main() {
15 CFI_CDESC_T(1) xd;
16 CFI_index_t ext[] = {34};
17 int sz;
19 CFI_establish((CFI_cdesc_t *) &xd, &x, CFI_attribute_other,
20 CFI_type_float, 0, 1, ext);
22 foo_opt((CFI_cdesc_t *) &xd, NULL, NULL, 0);
23 sz = 12;
24 foo_opt(NULL, &x[11], &sz, 1);
26 write_res();
28 return 0;