PR tree-optimization/86415 - strlen() not folded for substrings within constant arrays
[official-gcc.git] / gcc / testsuite / gfortran.dg / c_ptr_tests_driver.c
blobcd81c7bccec7b09226b9975e72a74fdb187ae01b
1 /* this is the driver for c_ptr_test.f03 */
3 typedef struct services
5 int compId;
6 void *globalServices;
7 }services_t;
9 typedef struct comp
11 void *myServices;
12 void (*setServices)(struct comp *self, services_t *myServices);
13 void *myPort;
14 }comp_t;
16 /* prototypes for f90 functions */
17 void sub0(comp_t *self, services_t *myServices);
19 int main(int argc, char **argv)
21 services_t servicesObj;
22 comp_t myComp;
24 servicesObj.compId = 17;
25 servicesObj.globalServices = 0; /* NULL; */
26 myComp.myServices = &servicesObj;
27 myComp.setServices = 0; /* NULL; */
28 myComp.myPort = 0; /* NULL; */
30 sub0(&myComp, &servicesObj);
32 return 0;
33 }/* end main() */