source: examples/wrapper/src/main.c@ ff593a3

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 ff593a3 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
RevLine 
[03286aa]1#include "pointer.h"
2
[21995bc]3wrapper_t make_copy(wrapper_t copy)
4{
5 return copy;
6}
7
[03286aa]8int main(int argc, char const *argv[])
9{
[bf1ee05]10 wrapper_t p = wrap(6);
[21995bc]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
[03286aa]24 return 0;
25}
Note: See TracBrowser for help on using the repository browser.