2 * (C) 2006 by Argonne National Laboratory.
3 * See COPYRIGHT in top-level directory.
5 * Portions of this code were written by Intel Corporation.
6 * Copyright (C) 2011-2012 Intel Corporation. Intel provides this material
7 * to Argonne National Laboratory subject to Software Grant and Corporate
8 * Contributor License Agreement dated February 8, 2012.
15 int main(int argc, char **argv)
17 int errcode, errclass, errs = 0;
19 MTest_Init(&argc, &argv);
21 MPI_Add_error_code(MPI_ERR_ARG, &errcode);
22 MPI_Error_class(errcode, &errclass);
24 if (errclass != MPI_ERR_ARG) {
25 printf("ERROR: Got 0x%d, expected 0x%d\n", errclass, MPI_ERR_ARG);
30 return MTestReturnValue(errs);