blob: 65754f3415d7ba3a43afc17fcd565375969e31c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/* Compiled and linked by bind_c.f90. */
#include <stdlib.h>
#include <stdbool.h>
void subtest (bool, int *);
void
c_proc (bool present, int *val)
{
int val2;
if (!present && val)
abort ();
else if (present)
{
if (!val) abort ();
if (*val != 4) abort ();
*val = 7;
}
val2 = 43;
subtest (1, &val2);
subtest (0, NULL);
if (val2 != -45) abort ();
}
|