source:
src/tests/identFuncDeclarator.c
@
026a0f5
Last change on this file since 026a0f5 was 5ead9f9, checked in by , 8 years ago | |
---|---|
|
|
File size: 2.2 KB |
Rev | Line | |
---|---|---|
[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 | // identFuncDeclarator.c -- | |
8 | // | |
9 | // Author : Peter A. Buhr | |
10 | // Created On : Wed Aug 17 08:36:34 2016 | |
11 | // Last Modified By : Peter A. Buhr | |
12 | // Last Modified On : Wed Aug 17 08:37:06 2016 | |
13 | // Update Count : 1 | |
14 | // | |
15 | ||
[62edde5] | 16 | int main() { |
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 | ||
[10dc7491] | 35 | int f15[2]; |
[62edde5] | 36 | int f16[10]; |
[10dc7491] | 37 | int (f17[2]); |
[62edde5] | 38 | int (f18[10]); |
39 | ||
[10dc7491] | 40 | int *f19[2]; |
[62edde5] | 41 | int *f20[10]; |
[10dc7491] | 42 | int **f21[2]; |
[62edde5] | 43 | int **f22[10]; |
[10dc7491] | 44 | int * const *f23[2]; |
[62edde5] | 45 | int * const *f24[10]; |
[10dc7491] | 46 | int * const * const f25[2]; |
[62edde5] | 47 | int * const * const f26[10]; |
48 | ||
[10dc7491] | 49 | int *(f27[2]); |
[62edde5] | 50 | int *(f28[10]); |
[10dc7491] | 51 | int **(f29[2]); |
[62edde5] | 52 | int **(f30[10]); |
[10dc7491] | 53 | int * const *(f31[2]); |
[62edde5] | 54 | int * const *(f32[10]); |
[10dc7491] | 55 | int * const * const (f33[2]); |
[62edde5] | 56 | int * const * const (f34[10]); |
57 | ||
[10dc7491] | 58 | int (*f35[2]); |
[62edde5] | 59 | int (*f36[10]); |
[10dc7491] | 60 | int (**f37[2]); |
[62edde5] | 61 | int (**f38[10]); |
[10dc7491] | 62 | int (* const *f39[2]); |
[62edde5] | 63 | int (* const *f40[10]); |
[10dc7491] | 64 | int (* const * const f41[2]); |
[62edde5] | 65 | int (* const * const f42[10]); |
66 | ||
[10dc7491] | 67 | int f43[2][3]; |
[62edde5] | 68 | int f44[3][3]; |
[10dc7491] | 69 | int (f45[2])[3]; |
[62edde5] | 70 | int (f46[3])[3]; |
[10dc7491] | 71 | int ((f47[2]))[3]; |
[62edde5] | 72 | int ((f48[3]))[3]; |
73 | ||
[10dc7491] | 74 | int *f49[2][3]; |
[62edde5] | 75 | int *f50[3][3]; |
[10dc7491] | 76 | int **f51[2][3]; |
[62edde5] | 77 | int **f52[3][3]; |
[10dc7491] | 78 | int * const *f53[2][3]; |
[62edde5] | 79 | int * const *f54[3][3]; |
[10dc7491] | 80 | int * const * const f55[2][3]; |
[62edde5] | 81 | int * const * const f56[3][3]; |
82 | ||
[10dc7491] | 83 | int (*f57[2][3]); |
[62edde5] | 84 | int (*f58[3][3]); |
[10dc7491] | 85 | int (**f59[2][3]); |
[62edde5] | 86 | int (**f60[3][3]); |
[10dc7491] | 87 | int (* const *f61[2][3]); |
[62edde5] | 88 | int (* const *f62[3][3]); |
[10dc7491] | 89 | int (* const * const f63[2][3]); |
[62edde5] | 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 | int * const * const (f74)(int); | |
104 | ||
105 | int (*f75)(int); | |
106 | int (**f76)(int); | |
107 | int (* const *f77)(int); | |
108 | int (* const * const f78)(int); | |
109 | ||
110 | int (*(*f79)(int))(); | |
111 | int (*(* const f80)(int))(); | |
112 | int (* const(* const f81)(int))(); | |
113 | } | |
[5ead9f9] | 114 | |
115 | // Local Variables: // | |
116 | // tab-width: 4 // | |
117 | // compile-command: "cfa identFuncDeclarator.c" // | |
118 | // End: // |
Note: See TracBrowser
for help on using the repository browser.