source: src/Tests/Function.c @ f32c7f4

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 f32c7f4 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: 480 bytes
RevLine 
[51b7345]1int a;
2float a;
3int f( int );
4float f( float );
5
[a65d92e]6void g() {
7        // selects the same f each time but without a cast would be ambiguous
8        f( (int)a );
9        (int)f( a );
[51b7345]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
[a65d92e]24void s() {
25        r( p, q );
26        r( [ q, p ] );
27        r( r( p, q ), r( q, q ) );
[51b7345]28}
[a65d92e]29
30// Local Variables: //
31// tab-width: 4 //
32// End: //
Note: See TracBrowser for help on using the repository browser.