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 451665cc was
843054c2,
checked in by Peter A. Buhr <pabuhr@…>, 9 years ago
|
licencing: seventh groups of files
|
-
Property mode set to
100644
|
File size:
572 bytes
|
Rev | Line | |
---|
[51b7345] | 1 | int ?=?( int*, int ); |
---|
| 2 | float ?=?( float*, float ); |
---|
| 3 | int * ?=?( int **, int * ); |
---|
| 4 | float * ?=?( float **, float * ); |
---|
| 5 | char ?=?( char*, char ); |
---|
| 6 | void (* ?=?( void (**)(void), void (*)(void) ))(void); |
---|
| 7 | |
---|
| 8 | void g1() |
---|
| 9 | { |
---|
| 10 | forall( type T ) T f( T ); |
---|
| 11 | void f( int ); |
---|
| 12 | void h( void (*p)(void) ); |
---|
| 13 | |
---|
| 14 | int x; |
---|
| 15 | void (*y)(void); |
---|
| 16 | char z; |
---|
| 17 | float w; |
---|
| 18 | |
---|
| 19 | f( x ); |
---|
| 20 | f( y ); |
---|
| 21 | f( z ); |
---|
| 22 | f( w ); |
---|
| 23 | h( f( y ) ); |
---|
| 24 | } |
---|
| 25 | |
---|
| 26 | void g2() |
---|
| 27 | { |
---|
| 28 | forall( type T ) void f( T, T ); |
---|
| 29 | forall( type T, type U ) void f( T, U ); |
---|
| 30 | |
---|
| 31 | int x; |
---|
| 32 | float y; |
---|
| 33 | int *z; |
---|
| 34 | float *w; |
---|
| 35 | |
---|
| 36 | f( x, y ); |
---|
| 37 | f( z, w ); |
---|
| 38 | f( x, z ); |
---|
| 39 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.