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