ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resnenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprno_listpersistent-indexerpthread-emulationqualifiedEnum
Last change
on this file since 90cfc16 was
bf71cfd,
checked in by Thierry Delisle <tdelisle@…>, 6 years ago
|
Moved up many directories in source
|
-
Property mode set to
100644
|
File size:
307 bytes
|
Line | |
---|
1 | #include "pointer.h" |
---|
2 | |
---|
3 | wrapper_t make_copy(wrapper_t copy) |
---|
4 | { |
---|
5 | return copy; |
---|
6 | } |
---|
7 | |
---|
8 | int main(int argc, char const *argv[]) |
---|
9 | { |
---|
10 | wrapper_t p = wrap(6); |
---|
11 | |
---|
12 | sout | endl | "test started" | endl; |
---|
13 | |
---|
14 | wrapper_t p2 = p; |
---|
15 | |
---|
16 | clear(&p); |
---|
17 | |
---|
18 | p = p2; |
---|
19 | |
---|
20 | wrapper_t p3 = make_copy(p2); |
---|
21 | |
---|
22 | sout | endl | "test ended" | endl; |
---|
23 | |
---|
24 | return 0; |
---|
25 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.