source:
CIVL/examples/languageFeatures/assertNonNullPointer.cvl@
f3527dd
| Last change on this file since f3527dd was 3ff27cf, checked in by , 11 years ago | |
|---|---|
|
|
| File size: 184 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 | |
| [3ff27cf] | 12 | $assert((p)); // OK |
| [09b9231b] | 13 | } |
Note:
See TracBrowser
for help on using the repository browser.
