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:
605 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 | |
---|
[a65d92e] | 8 | void g1() { |
---|
| 9 | forall( type T ) T f( T ); |
---|
| 10 | void f( int ); |
---|
| 11 | void h( void (*p)(void) ); |
---|
[51b7345] | 12 | |
---|
[a65d92e] | 13 | int x; |
---|
| 14 | void (*y)(void); |
---|
| 15 | char z; |
---|
| 16 | float w; |
---|
[51b7345] | 17 | |
---|
[a65d92e] | 18 | f( x ); |
---|
| 19 | f( y ); |
---|
| 20 | f( z ); |
---|
| 21 | f( w ); |
---|
| 22 | h( f( y ) ); |
---|
[51b7345] | 23 | } |
---|
| 24 | |
---|
[a65d92e] | 25 | void g2() { |
---|
| 26 | forall( type T ) void f( T, T ); |
---|
| 27 | forall( type T, type U ) void f( T, U ); |
---|
[51b7345] | 28 | |
---|
[a65d92e] | 29 | int x; |
---|
| 30 | float y; |
---|
| 31 | int *z; |
---|
| 32 | float *w; |
---|
[51b7345] | 33 | |
---|
[a65d92e] | 34 | f( x, y ); |
---|
| 35 | f( z, w ); |
---|
| 36 | f( x, z ); |
---|
[51b7345] | 37 | } |
---|
[a65d92e] | 38 | |
---|
| 39 | // Local Variables: // |
---|
| 40 | // tab-width: 4 // |
---|
| 41 | // End: // |
---|
Note: See
TracBrowser
for help on using the repository browser.