source:
CIVL/mods/dev.civl.com/examples/experimental/validPtrAddCrashInPar.c@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 215 bytes | |
| Rev | Line | |
|---|---|---|
| [869b90f] | 1 | #include <assert.h> |
| 2 | #include <mpi.h> | |
| 3 | ||
| 4 | int main(int argc, char * argv[]) { | |
| 5 | int deno = 0; | |
| 6 | int undef; | |
| 7 | int a[3]; | |
| 8 | int * p = a; | |
| 9 | ||
| 10 | MPI_Init(NULL, NULL); | |
| 11 | p = p + 3; | |
| 12 | assert(p); | |
| 13 | MPI_Finalize(); | |
| 14 | return 0; | |
| 15 | } |
Note:
See TracBrowser
for help on using the repository browser.
