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 51b7345 was
51b7345,
checked in by Peter A. Buhr <pabuhr@…>, 10 years ago
|
initial commit
|
-
Property mode set to
100644
|
File size:
443 bytes
|
Rev | Line | |
---|
[51b7345] | 1 | int a; |
---|
| 2 | float a; |
---|
| 3 | int f( int ); |
---|
| 4 | float f( float ); |
---|
| 5 | |
---|
| 6 | void g() |
---|
| 7 | { |
---|
| 8 | // selects the same f and a each time |
---|
| 9 | // but without a cast would be ambiguous |
---|
| 10 | f( (int)a ); |
---|
| 11 | (int)f( a ); |
---|
| 12 | } |
---|
| 13 | |
---|
| 14 | [ int ] p; |
---|
| 15 | [ int, double ] p; |
---|
| 16 | [ int, int, int ] p; |
---|
| 17 | [ int, int, int, int ] p; |
---|
| 18 | |
---|
| 19 | [ char ] q; |
---|
| 20 | [ int, int ] q; |
---|
| 21 | [ int, int, float ] q; |
---|
| 22 | [ int, int, int, int ] q; |
---|
| 23 | |
---|
| 24 | [ int, int ] r( int, int, int, int ); |
---|
| 25 | |
---|
| 26 | void s() |
---|
| 27 | { |
---|
| 28 | r( p, q ); |
---|
| 29 | r( [ q, p ] ); |
---|
| 30 | r( r( p, q ), r( q, q ) ); |
---|
| 31 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.