source:
tests/zombies/wrapper/src/main.c
@
8ca26d5
Last change on this file since 8ca26d5 was 87b9332, checked in by , 4 years ago | |
---|---|
|
|
File size: 282 bytes |
Rev | Line | |
---|---|---|
[03286aa] | 1 | #include "pointer.h" |
2 | ||
[200fcb3] | 3 | wrapper_t make_copy(wrapper_t copy) { |
[21995bc] | 4 | return copy; |
5 | } | |
6 | ||
[200fcb3] | 7 | int main(int argc, char const *argv[]) { |
[bf1ee05] | 8 | wrapper_t p = wrap(6); |
[200fcb3] | 9 | sout | nl | "test started"; |
[21995bc] | 10 | wrapper_t p2 = p; |
11 | clear(&p); | |
12 | p = p2; | |
13 | wrapper_t p3 = make_copy(p2); | |
[200fcb3] | 14 | sout | nl | "test ended"; |
[03286aa] | 15 | return 0; |
16 | } |
Note: See TracBrowser
for help on using the repository browser.