source:
CIVL/mods/dev.civl.com/examples/pthread/svcomp/intPointer.c@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 159 bytes | |
| Line | |
|---|---|
| 1 | #include<stdlib.h> |
| 2 | #include<assert.h> |
| 3 | |
| 4 | int f(int x){ |
| 5 | |
| 6 | assert(!x); |
| 7 | return x!=0; |
| 8 | } |
| 9 | |
| 10 | int main(){ |
| 11 | double *p=NULL;//=malloc(sizeof(double)*10); |
| 12 | |
| 13 | f(p); |
| 14 | } |
| 15 | |
| 16 | |
| 17 |
Note:
See TracBrowser
for help on using the repository browser.
