blob: ffc90b728b5e1f1f241da8f20ba397d87d35ceda [file] [log] [blame]
/* Compiled and linked by bind_c.f90. */
#include <stdlib.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 ();
}