[3a5131ed] | 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.c -- |
---|
| 8 | // |
---|
| 9 | // Author : Peter A. Buhr |
---|
| 10 | // Created On : Thu Feb 16 15:23:17 2017 |
---|
| 11 | // Last Modified By : Peter A. Buhr |
---|
[a933bcb3] | 12 | // Last Modified On : Wed May 24 22:05:00 2017 |
---|
| 13 | // Update Count : 3 |
---|
[3a5131ed] | 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 | |
---|
| 40 | const fred() { |
---|
| 41 | int *(*x)( int, int ); |
---|
| 42 | int a, b; |
---|
| 43 | x = f10( 3, &a, &b, 3.5 ); |
---|
| 44 | const f1( a, b, c ) int a, * b, c[]; {} |
---|
| 45 | const f2( int a, int b, int c ) {} |
---|
| 46 | } |
---|
| 47 | |
---|
| 48 | // Local Variables: // |
---|
| 49 | // tab-width: 4 // |
---|
| 50 | // compile-command: "cfa KRfunctions.c" // |
---|
| 51 | // End: // |
---|