ADT
aaron-thesis
arm-eh
ast-experimental
cleanup-dtors
deferred_resn
demangler
enum
forall-pointer-decay
jacob/cs343-translation
jenkins-sandbox
new-ast
new-ast-unique-expr
no_list
persistent-indexer
pthread-emulation
qualifiedEnum
|
Last change
on this file since 47b3235 was bf71cfd, checked in by Thierry Delisle <tdelisle@…>, 7 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.