source:
CIVL/mods/dev.civl.abc/examples/contract/result.c
| Last change on this file was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 146 bytes | |
| Line | |
|---|---|
| 1 | #include<assert.h> |
| 2 | |
| 3 | /*@ |
| 4 | @ ensures \result == 1; |
| 5 | @ |
| 6 | */ |
| 7 | int gimmeOne() { |
| 8 | return 1; |
| 9 | } |
| 10 | |
| 11 | int main() { |
| 12 | int x = gimmeOne(); |
| 13 | |
| 14 | assert(x == 1); |
| 15 | } |
Note:
See TracBrowser
for help on using the repository browser.
