| 1 | // | 
|---|
| 2 | // Cforall Version 1.0.0 Copyright (C) 2017 University of Waterloo | 
|---|
| 3 | // | 
|---|
| 4 | // The contents of this file are covered under the licence agreement in the | 
|---|
| 5 | // file "LICENCE" distributed with Cforall. | 
|---|
| 6 | // | 
|---|
| 7 | // KRfunctions.cfa -- | 
|---|
| 8 | // | 
|---|
| 9 | // Author           : Peter A. Buhr | 
|---|
| 10 | // Created On       : Thu Feb 16 15:23:17 2017 | 
|---|
| 11 | // Last Modified By : Peter A. Buhr | 
|---|
| 12 | // Last Modified On : Tue Nov  6 17:50:34 2018 | 
|---|
| 13 | // Update Count     : 9 | 
|---|
| 14 | // | 
|---|
| 15 |  | 
|---|
| 16 | f0( a, b, c ) const int * b; {} | 
|---|
| 17 | f1( a, b, c ) int b __attribute__ (( unused )), * a, c[]; {} | 
|---|
| 18 | (f2)( a, b, c ) int a, * b, c[]; {} | 
|---|
| 19 |  | 
|---|
| 20 | struct S { int i; }; | 
|---|
| 21 | int f3( a, b, c ) struct S a; struct S b; int c[]; { struct S s;} | 
|---|
| 22 | int (f4)( a, b, c ) int a, * b, c[]; {} | 
|---|
| 23 | int (f5( a, b, c )) int a, * b, c[]; {} | 
|---|
| 24 |  | 
|---|
| 25 | int (* f6( a, b, c ))(int) int a, * b, c[]; {} | 
|---|
| 26 | int (* f7( a, b, c ))(int a, int b) int a, * b, c[]; {} | 
|---|
| 27 | int * f8( a, b, c ) int a, * b, c[]; {} | 
|---|
| 28 | int * const f9( a, b, c ) int b, * a, c[]; {} | 
|---|
| 29 |  | 
|---|
| 30 | int (* (* f10( a, b, c, y ))( int x, int y ) ) int a, * b, c[]; double y; { | 
|---|
| 31 | int *x( int, int ); | 
|---|
| 32 | return x; | 
|---|
| 33 | } | 
|---|
| 34 |  | 
|---|
| 35 | int (* f11( a, b, c ))[] int a, * b, c[]; {} | 
|---|
| 36 | int (* f12( a, b, c ))[][10] int a, * b, c[]; {} | 
|---|
| 37 | int ((* f13( a, b, c ))[])[10] int a, * b, c[]; {} | 
|---|
| 38 | int (((* f14( a, b, c ))[])[10]) int a, * b, c[]; {} | 
|---|
| 39 | f15( a, b, c ) {} | 
|---|
| 40 |  | 
|---|
| 41 | const fred() { | 
|---|
| 42 | int *(*x)( int, int ); | 
|---|
| 43 | int a, b; | 
|---|
| 44 | x = f10( 3, &a, &b, 3.5 ); | 
|---|
| 45 | const f1( a, b, c ) int a, * b, c[]; {} | 
|---|
| 46 | const f2( int a, int b, int c ) {} | 
|---|
| 47 | } | 
|---|
| 48 |  | 
|---|
| 49 | // Local Variables: // | 
|---|
| 50 | // tab-width: 4 // | 
|---|
| 51 | // compile-command: "cfa KRfunctions.cfa" // | 
|---|
| 52 | // End: // | 
|---|