source: translator/Tests/ResolvExpr/Abstype.c @ b1a6d6b

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newstringwith_gc
Last change on this file since b1a6d6b was 51b7345, checked in by Peter A. Buhr <pabuhr@…>, 10 years ago

initial commit

  • Property mode set to 100644
File size: 388 bytes
Line 
1// "cfa-cpp -nx Abstype.c"
2
3type T | { T x( T ); };
4
5T y( T t )
6{
7        T t_instance;
8        return x( t );
9}
10
11forall(type T) lvalue T                 *?(                T* );
12int             ?++( int *);
13int ?=?( int*, int );
14forall(dtype DT) DT*                    ?=?(                DT *          *,          DT* );
15
16type U = int*;
17
18U x( U u )
19{
20        U u_instance = u;
21        (*u)++;
22        return u;
23}
24
25int *break_abstraction( U u )
26{
27        return u;
28}
Note: See TracBrowser for help on using the repository browser.