source: src/Tests/ResolvExpr/Function.c@ f7d59bf

ADT aaron-thesis arm-eh ast-experimental cleanup-dtors ctor deferred_resn demangler enum forall-pointer-decay gc_noraii jacob/cs343-translation jenkins-sandbox memory new-ast new-ast-unique-expr new-env no_list persistent-indexer pthread-emulation qualifiedEnum resolv-new string with_gc
Last change on this file since f7d59bf was 843054c2, checked in by Peter A. Buhr <pabuhr@…>, 10 years ago

licencing: seventh groups of files

  • Property mode set to 100644
File size: 443 bytes
Line 
1int a;
2float a;
3int f( int );
4float f( float );
5
6void 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
26void 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.