| [5ead9f9] | 1 | // 
 | 
|---|
 | 2 | // Cforall Version 1.0.0 Copyright (C) 2016 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 | // variableDeclarator.c -- 
 | 
|---|
 | 8 | // 
 | 
|---|
 | 9 | // Author           : Peter A. Buhr
 | 
|---|
 | 10 | // Created On       : Wed Aug 17 08:41:42 2016
 | 
|---|
 | 11 | // Last Modified By : Peter A. Buhr
 | 
|---|
 | 12 | // Last Modified On : Wed Aug 17 08:42:21 2016
 | 
|---|
 | 13 | // Update Count     : 1
 | 
|---|
 | 14 | // 
 | 
|---|
 | 15 | 
 | 
|---|
 | 16 | // Variable declarations test
 | 
|---|
| [62edde5] | 17 | int f1;
 | 
|---|
 | 18 | int (f2);
 | 
|---|
 | 19 | 
 | 
|---|
 | 20 | int *f3;
 | 
|---|
 | 21 | int **f4;
 | 
|---|
 | 22 | int * const *f5;
 | 
|---|
 | 23 | int * const * const f6;
 | 
|---|
 | 24 | 
 | 
|---|
 | 25 | int *(f7);
 | 
|---|
 | 26 | int **(f8);
 | 
|---|
 | 27 | int * const *(f9);
 | 
|---|
 | 28 | int * const * const (f10);
 | 
|---|
 | 29 | 
 | 
|---|
 | 30 | int (*f11);
 | 
|---|
 | 31 | int (**f12);
 | 
|---|
 | 32 | int (* const *f13);
 | 
|---|
 | 33 | int (* const * const f14);
 | 
|---|
 | 34 | 
 | 
|---|
 | 35 | int f15[];
 | 
|---|
 | 36 | int f16[10];
 | 
|---|
 | 37 | int (f17[]);
 | 
|---|
 | 38 | int (f18[10]);
 | 
|---|
 | 39 | 
 | 
|---|
 | 40 | int *f19[];
 | 
|---|
 | 41 | int *f20[10];
 | 
|---|
 | 42 | int **f21[];
 | 
|---|
 | 43 | int **f22[10];
 | 
|---|
 | 44 | int * const *f23[];
 | 
|---|
 | 45 | int * const *f24[10];
 | 
|---|
 | 46 | int * const * const f25[];
 | 
|---|
 | 47 | int * const * const f26[10];
 | 
|---|
 | 48 | 
 | 
|---|
 | 49 | int *(f27[]);
 | 
|---|
 | 50 | int *(f28[10]);
 | 
|---|
 | 51 | int **(f29[]);
 | 
|---|
 | 52 | int **(f30[10]);
 | 
|---|
 | 53 | int * const *(f31[]);
 | 
|---|
 | 54 | int * const *(f32[10]);
 | 
|---|
 | 55 | int * const * const (f33[]);
 | 
|---|
 | 56 | int * const * const (f34[10]);
 | 
|---|
 | 57 | 
 | 
|---|
 | 58 | int (*f35)[];
 | 
|---|
 | 59 | int (*f36)[10];
 | 
|---|
 | 60 | int (**f37)[];
 | 
|---|
 | 61 | int (**f38)[10];
 | 
|---|
 | 62 | int (* const *f39)[];
 | 
|---|
 | 63 | int (* const *f40)[10];
 | 
|---|
 | 64 | int (* const * const f41)[];
 | 
|---|
 | 65 | int (* const * const f42)[10];
 | 
|---|
 | 66 | 
 | 
|---|
 | 67 | int f43[][3];
 | 
|---|
 | 68 | int f44[3][3];
 | 
|---|
 | 69 | int (f45[])[3];
 | 
|---|
 | 70 | int (f46[3])[3];
 | 
|---|
 | 71 | int ((f47[]))[3];
 | 
|---|
 | 72 | int ((f48[3]))[3];
 | 
|---|
 | 73 | 
 | 
|---|
 | 74 | int *f49[][3];
 | 
|---|
 | 75 | int *f50[3][3];
 | 
|---|
 | 76 | int **f51[][3];
 | 
|---|
 | 77 | int **f52[3][3];
 | 
|---|
 | 78 | int * const *f53[][3];
 | 
|---|
 | 79 | int * const *f54[3][3];
 | 
|---|
 | 80 | int * const * const f55[][3];
 | 
|---|
 | 81 | int * const * const f56[3][3];
 | 
|---|
 | 82 | 
 | 
|---|
 | 83 | int (*f57[][3]);
 | 
|---|
 | 84 | int (*f58[3][3]);
 | 
|---|
 | 85 | int (**f59[][3]);
 | 
|---|
 | 86 | int (**f60[3][3]);
 | 
|---|
 | 87 | int (* const *f61[][3]);
 | 
|---|
 | 88 | int (* const *f62[3][3]);
 | 
|---|
 | 89 | int (* const * const f63[][3]);
 | 
|---|
 | 90 | int (* const * const f64[3][3]);
 | 
|---|
 | 91 | 
 | 
|---|
 | 92 | int f65(int);
 | 
|---|
 | 93 | int (f66)(int);
 | 
|---|
 | 94 | 
 | 
|---|
 | 95 | int *f67(int);
 | 
|---|
 | 96 | int **f68(int);
 | 
|---|
 | 97 | int * const *f69(int);
 | 
|---|
 | 98 | int * const * const f70(int);
 | 
|---|
 | 99 | 
 | 
|---|
 | 100 | int *(f71)(int);
 | 
|---|
 | 101 | int **(f72)(int);
 | 
|---|
 | 102 | int * const *(f73)(int);
 | 
|---|
 | 103 | 
 | 
|---|
 | 104 | int * const * const (f74)(int);
 | 
|---|
 | 105 | 
 | 
|---|
 | 106 | int (*f75)(int);
 | 
|---|
 | 107 | int (**f76)(int);
 | 
|---|
 | 108 | int (* const *f77)(int);
 | 
|---|
 | 109 | int (* const * const f78)(int);
 | 
|---|
 | 110 | 
 | 
|---|
 | 111 | int (*(*f79)(int))();
 | 
|---|
 | 112 | int (*(* const f80)(int))();
 | 
|---|
 | 113 | int (* const(* const f81)(int))();
 | 
|---|
 | 114 | 
 | 
|---|
 | 115 | // errors
 | 
|---|
 | 116 | 
 | 
|---|
 | 117 | //int fe0[]();                          // array of functions
 | 
|---|
 | 118 | //int (fe1[])();                                // array of functions
 | 
|---|
 | 119 | //int fe2()[];                          // returning an array
 | 
|---|
 | 120 | //int fe3()();                          // returning a function
 | 
|---|
 | 121 | //int (*fe4)()();                               // returning a function
 | 
|---|
 | 122 | //int ((*fe5())())[];                   // returning an array
 | 
|---|
 | 123 | 
 | 
|---|
 | 124 | // Cforall extensions
 | 
|---|
 | 125 | 
 | 
|---|
 | 126 | * int cf3;
 | 
|---|
 | 127 | * * int cf4;
 | 
|---|
 | 128 | * const * int cf5;
 | 
|---|
 | 129 | const * const * int cf6;
 | 
|---|
 | 130 | 
 | 
|---|
 | 131 | [] int cf15;
 | 
|---|
 | 132 | [10] int cf16;
 | 
|---|
 | 133 | 
 | 
|---|
 | 134 | [] * int cf19;
 | 
|---|
 | 135 | [10] * int cf20;
 | 
|---|
 | 136 | int **cf21[];
 | 
|---|
 | 137 | [10] * * int cf22;
 | 
|---|
 | 138 | [] * const * int cf23;
 | 
|---|
 | 139 | [10] * const * int cf24;
 | 
|---|
 | 140 | [] const * const * int cf25;
 | 
|---|
 | 141 | [10] const * const * int cf26;
 | 
|---|
 | 142 | 
 | 
|---|
 | 143 | * [] int cf35;
 | 
|---|
 | 144 | * [10] int cf36;
 | 
|---|
 | 145 | * * [] int cf37;
 | 
|---|
 | 146 | * * [10] int cf38;
 | 
|---|
 | 147 | * const * [] int cf39;
 | 
|---|
 | 148 | * const * [10] int cf40;
 | 
|---|
 | 149 | const * const * [] int cf41;
 | 
|---|
 | 150 | const * const * [10] int cf42;
 | 
|---|
 | 151 | 
 | 
|---|
 | 152 | [][3] int cf43;
 | 
|---|
 | 153 | [3][3] int cf44;
 | 
|---|
 | 154 | 
 | 
|---|
 | 155 | [][3] * int cf49;
 | 
|---|
 | 156 | [3][3] * int cf50;
 | 
|---|
 | 157 | [][3] * * int cf51;
 | 
|---|
 | 158 | [3][3] * * int cf52;
 | 
|---|
 | 159 | [][3] const * int cf53;
 | 
|---|
 | 160 | [3][3] * const * int cf54;
 | 
|---|
 | 161 | [][3] const * const * int cf55;
 | 
|---|
 | 162 | [3][3] const * const * int cf56;
 | 
|---|
 | 163 | 
 | 
|---|
 | 164 | [int] cf65(int);
 | 
|---|
 | 165 | [int] cf66(int);
 | 
|---|
 | 166 | 
 | 
|---|
 | 167 | [* int] cf67(int);
 | 
|---|
 | 168 | [* * int] cf68(int);
 | 
|---|
 | 169 | [const * * int] cf69(int);
 | 
|---|
 | 170 | [const * const * int] cf70(int);
 | 
|---|
 | 171 | 
 | 
|---|
 | 172 | // function pointer
 | 
|---|
 | 173 | 
 | 
|---|
 | 174 | *[]*[]* [ *[]*[] int ]( *[]*[] int, *[]*[] int ) v3;
 | 
|---|
 | 175 | 
 | 
|---|
 | 176 | //Dummy main
 | 
|---|
 | 177 | int main(int argc, char const *argv[])
 | 
|---|
 | 178 | {
 | 
|---|
 | 179 |         return 0;
 | 
|---|
 | 180 | }
 | 
|---|
| [5ead9f9] | 181 | 
 | 
|---|
 | 182 | // Local Variables: //
 | 
|---|
 | 183 | // tab-width: 4 //
 | 
|---|
 | 184 | // compile-command: "cfa variableDeclarator.c" //
 | 
|---|
 | 185 | // End: //
 | 
|---|