source: examples/gc_no_raii/bug-repro/deref.c @ 2725882

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resnenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprno_listpersistent-indexerpthread-emulationqualifiedEnum
Last change on this file since 2725882 was bf71cfd, checked in by Thierry Delisle <tdelisle@…>, 6 years ago

Moved up many directories in source

  • Property mode set to 100644
File size: 306 bytes
RevLine 
[273080f]1    forall(otype T)
2    struct wrap
3    {
4        T val;
5    };
6
7    forall(otype T)
8    T *? (wrap(T) rhs)
9    {
10        return rhs.val;
11    }
12
13    int main(int argc, char const *argv[])
14    {
15        wrap(int) test;
16        test.val = 3;
17        int i = *test;
18        return 0;
19    }
Note: See TracBrowser for help on using the repository browser.