2011-05-23 Tom de Vries <tom@codesourcery.com>
[official-gcc.git] / gcc / testsuite / gfortran.dg / c_ptr_tests_8_funcs.c
blob2ad01211658cc1463924bdad6a619778236c659f
1 /* This file provides auxilliary functions for c_ptr_tests_8. */
3 #include <stdio.h>
4 #include <stdlib.h>
6 extern void abort (void);
8 void *create (void)
10 int *a;
11 a = malloc (sizeof (a));
12 *a = 444;
13 return a;
17 void show (int *a)
19 if (*a == 444)
20 printf ("SUCCESS (%d)\n", *a);
21 else
23 printf ("FAILED: Expected 444, received %d\n", *a);
24 abort ();