ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change
on this file since 0c24808 was
b1d6dd5,
checked in by Peter A. Buhr <pabuhr@…>, 9 years ago
|
fix parsing error for EOF message, change cfa-ccp -x flag to -v, regression testing third attempt: consolidate example programs
|
-
Property mode set to
100644
|
File size:
455 bytes
|
Line | |
---|
1 | int ?=?( int*, int ); |
---|
2 | float ?=?( float*, float ); |
---|
3 | double ?=?( double*, double ); |
---|
4 | |
---|
5 | forall( type T, type U | { U f(T); } ) U g(T); |
---|
6 | float f( int ); |
---|
7 | double f( int ); |
---|
8 | void i( float ); |
---|
9 | |
---|
10 | void h() { |
---|
11 | int a; |
---|
12 | i( g( a ) ); |
---|
13 | } |
---|
14 | |
---|
15 | context has_f_and_j( type T, type U ) { |
---|
16 | U f( T ); |
---|
17 | U j( T, U ); |
---|
18 | }; |
---|
19 | |
---|
20 | float j( int, float ); |
---|
21 | forall( type T, type U | has_f_and_j( T, U ) ) U k( T ); |
---|
22 | |
---|
23 | void l() { |
---|
24 | int b; |
---|
25 | i( k( b ) ); |
---|
26 | } |
---|
27 | |
---|
28 | // Local Variables: // |
---|
29 | // tab-width: 4 // |
---|
30 | // End: // |
---|
Note: See
TracBrowser
for help on using the repository browser.