ADT
aaron-thesis
arm-eh
ast-experimental
cleanup-dtors
deferred_resn
demangler
enum
forall-pointer-decay
jacob/cs343-translation
jenkins-sandbox
new-ast
new-ast-unique-expr
new-env
no_list
persistent-indexer
pthread-emulation
qualifiedEnum
resolv-new
with_gc
|
Last change
on this file since e5f2a67 was e757af2, checked in by Thierry Delisle <tdelisle@…>, 9 years ago |
|
renamed all tests to lower-case leading character
|
-
Property mode
set to
100644
|
|
File size:
480 bytes
|
| Line | |
|---|
| 1 | int a;
|
|---|
| 2 | float a;
|
|---|
| 3 | int f( int );
|
|---|
| 4 | float f( float );
|
|---|
| 5 |
|
|---|
| 6 | void g() {
|
|---|
| 7 | // selects the same f each time but without a cast would be ambiguous
|
|---|
| 8 | f( (int)a );
|
|---|
| 9 | (int)f( a );
|
|---|
| 10 | }
|
|---|
| 11 |
|
|---|
| 12 | [ int ] p;
|
|---|
| 13 | [ int, double ] p;
|
|---|
| 14 | [ int, int, int ] p;
|
|---|
| 15 | [ int, int, int, int ] p;
|
|---|
| 16 |
|
|---|
| 17 | [ char ] q;
|
|---|
| 18 | [ int, int ] q;
|
|---|
| 19 | [ int, int, float ] q;
|
|---|
| 20 | [ int, int, int, int ] q;
|
|---|
| 21 |
|
|---|
| 22 | [ int, int ] r( int, int, int, int );
|
|---|
| 23 |
|
|---|
| 24 | void s() {
|
|---|
| 25 | r( p, q );
|
|---|
| 26 | r( [ q, p ] );
|
|---|
| 27 | r( r( p, q ), r( q, q ) );
|
|---|
| 28 | }
|
|---|
| 29 |
|
|---|
| 30 | // Local Variables: //
|
|---|
| 31 | // tab-width: 4 //
|
|---|
| 32 | // End: //
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.