1 /*
2    (C) 2001 by Argonne National Laboratory.
3        See COPYRIGHT in top-level directory.
4 */
5 #include "mpi.h"
6 #include <stdio.h>
7 
8 /*
9     This version is used the check out the -mpedbg option when MPICH is
10     built with the -mpedbg option (at configure!)
11  */
main(int argc,char ** argv)12 main( int argc, char **argv )
13 {
14     int dest = 0, *buffer=&dest;
15 
16     MPI_Init( &argc, &argv );
17     /* Make erroneous call... */
18     if (argc > 0) {
19         buffer = 0;
20         *buffer = 3;
21     }
22     else
23         MPI_Send(buffer, 20, MPI_INT, dest, 1, NULL);
24     MPI_Finalize();
25 }
26