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 8c17ab0 was
51b7345,
checked in by Peter A. Buhr <pabuhr@…>, 10 years ago
|
initial commit
|
-
Property mode set to
100644
|
File size:
407 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 | { |
---|
12 | int a; |
---|
13 | i( g( a ) ); |
---|
14 | } |
---|
15 | |
---|
16 | context has_f_and_j( type T, type U ) |
---|
17 | { |
---|
18 | U f( T ); |
---|
19 | U j( T, U ); |
---|
20 | }; |
---|
21 | |
---|
22 | float j( int, float ); |
---|
23 | forall( type T, type U | has_f_and_j( T, U ) ) U k( T ); |
---|
24 | |
---|
25 | void l() |
---|
26 | { |
---|
27 | int b; |
---|
28 | i( k( b ) ); |
---|
29 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.