source:
CIVL/mods/dev.civl.com/examples/gen/gen.c@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 250 bytes | |
| Line | |
|---|---|
| 1 | /** since the arguments of main is never used, they would |
| 2 | * be removed by the general transformer. |
| 3 | * This example should pass. |
| 4 | */ |
| 5 | int sum(int k){ |
| 6 | return (1+k)*k/2; |
| 7 | } |
| 8 | |
| 9 | int main(int argc, char* argv[]){ |
| 10 | int a=9; |
| 11 | |
| 12 | a = sum(a); |
| 13 | return 0; |
| 14 | } |
| 15 |
Note:
See TracBrowser
for help on using the repository browser.
