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 52ac3b4 was
843054c2,
checked in by Peter A. Buhr <pabuhr@…>, 9 years ago
|
licencing: seventh groups of files
|
-
Property mode set to
100644
|
File size:
348 bytes
|
Rev | Line | |
---|
[a0d9f94] | 1 | // "cfa-cpp -nx Abstype.c" |
---|
| 2 | |
---|
| 3 | type T | { T x( T ); }; |
---|
| 4 | |
---|
| 5 | T y( T t ) { |
---|
| 6 | T t_instance; |
---|
| 7 | return x( t ); |
---|
| 8 | } |
---|
| 9 | |
---|
| 10 | forall(type T) lvalue T *?( T* ); |
---|
| 11 | int ?++( int *); |
---|
| 12 | int ?=?( int*, int ); |
---|
| 13 | forall(dtype DT) DT* ?=?( DT **, DT* ); |
---|
| 14 | |
---|
| 15 | type U = int*; |
---|
| 16 | |
---|
| 17 | U x( U u ) { |
---|
| 18 | U u_instance = u; |
---|
| 19 | (*u)++; |
---|
| 20 | return u; |
---|
| 21 | } |
---|
| 22 | |
---|
| 23 | int *break_abstraction( U u ) { |
---|
| 24 | return u; |
---|
| 25 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.