source:
CIVL/examples/languageFeatures/assertNonNullPointer.cvl
| Last change on this file was ea777aa, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 182 bytes | |
| Rev | Line | |
|---|---|---|
| [09b9231b] | 1 | /* |
| 2 | * Commandline example: | |
| 3 | * civl verify assertNonNullPointer.cvl | |
| 4 | */ | |
| [4208097] | 5 | #include<civlc.cvh> |
| [09b9231b] | 6 | #include<stdio.h> |
| 7 | ||
| 8 | void main(){ | |
| 9 | double x; | |
| 10 | double *p=&x; | |
| [5caec96] | 11 | |
| [d980649] | 12 | $assert(p); // OK |
| [09b9231b] | 13 | } |
Note:
See TracBrowser
for help on using the repository browser.
