source: src/Tests/ResolvExpr/Abstype.c@ f7d59bf

ADT aaron-thesis arm-eh ast-experimental cleanup-dtors ctor deferred_resn demangler enum forall-pointer-decay gc_noraii jacob/cs343-translation jenkins-sandbox memory new-ast new-ast-unique-expr new-env no_list persistent-indexer pthread-emulation qualifiedEnum resolv-new string with_gc
Last change on this file since f7d59bf was 843054c2, checked in by Peter A. Buhr <pabuhr@…>, 10 years ago

licencing: seventh groups of files

  • 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.