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

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 cd623a4 was a65d92e, checked in by Peter A. Buhr <pabuhr@…>, 9 years ago

regression testing, second attempt

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