source:
CIVL/mods/dev.civl.abc/examples/svcomp/pointerIntConversions.c@
8553be8
| Last change on this file since 8553be8 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 148 bytes | |
| Line | |
|---|---|
| 1 | void* f(int a){ |
| 2 | return a; |
| 3 | } |
| 4 | |
| 5 | void* g(int t){ |
| 6 | return t; |
| 7 | } |
| 8 | |
| 9 | int h(void* x){ |
| 10 | return x; |
| 11 | } |
| 12 | |
| 13 | int main(){ |
| 14 | int t, *p=&t; |
| 15 | |
| 16 | f(p); |
| 17 | g(t); |
| 18 | h(t); |
| 19 | } |
Note:
See TracBrowser
for help on using the repository browser.
