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