source: tests/identFuncDeclarator.cfa @ 10b5970

Last change on this file since 10b5970 was 2853d6f, checked in by Michael Brooks <mlbrooks@…>, 3 weeks ago

Remove uses of warnings to show test success. Eliminate simple causes of other warnings from affected tests and remove the result from WFLAG_OPT_LAX.

Many affected tests also formerly used -fsyntax-only to avoid errors at later compilation stages, or at runtime. Repair such tests to actually work though runtime, and remove them from SYNTAX_ONLY_CODE.

Group tests listed under WFLAGS_OPT according to why they should receive lax treatment. Add reason WFLGAS_OPT_LAX_EXPECT_WARN and give the original list reason WFLGAS_OPT_LAX_TO_INVESTIGATE.

Tests whose purpose is to show a warning are listed as both SYNTAX_ONLY_CODE (so that the warning is the output) and WFLGAS_OPT_LAX_EXPECT_WARN (to document this fact).

  • Property mode set to 100644
File size: 2.3 KB
Line 
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.cfa --
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 : Sat Jun  5 10:06:25 2021
13// Update Count     : 6
14//
15
16int f1;
17int (f2);
18
19int * f3;
20int ** f4;
21int * const * f5;
22int * const * const f6;
23
24int * (f7);
25int ** (f8);
26int * const * (f9);
27int * const * const (f10);
28
29int (* f11);
30int (** f12);
31int (* const * f13);
32int (* const * const f14);
33
34int f15[2];
35int f16[10];
36int (f17[2]);
37int (f18[10]);
38
39int * f19[2];
40int * f20[10];
41int ** f21[2];
42int ** f22[10];
43int * const * f23[2];
44int * const * f24[10];
45int * const * const f25[2];
46int * const * const f26[10];
47
48int * (f27[2]);
49int * (f28[10]);
50int ** (f29[2]);
51int ** (f30[10]);
52int * const * (f31[2]);
53int * const * (f32[10]);
54int * const * const (f33[2]);
55int * const * const (f34[10]);
56
57int (* f35[2]);
58int (* f36[10]);
59int (** f37[2]);
60int (** f38[10]);
61int (* const * f39[2]);
62int (* const * f40[10]);
63int (* const * const f41[2]);
64int (* const * const f42[10]);
65
66int f43[2][3];
67int f44[3][3];
68int (f45[2])[3];
69int (f46[3])[3];
70int ((f47[2]))[3];
71int ((f48[3]))[3];
72
73int * f49[2][3];
74int * f50[3][3];
75int ** f51[2][3];
76int ** f52[3][3];
77int * const * f53[2][3];
78int * const * f54[3][3];
79int * const * const f55[2][3];
80int * const * const f56[3][3];
81
82int (* f57[2][3]);
83int (* f58[3][3]);
84int (** f59[2][3]);
85int (** f60[3][3]);
86int (* const * f61[2][3]);
87int (* const * f62[3][3]);
88int (* const * const f63[2][3]);
89int (* const * const f64[3][3]);
90
91int f65(int);
92int (f66)(int);
93
94#pragma GCC diagnostic push
95#pragma GCC diagnostic ignored "-Wignored-qualifiers"
96
97int * f67(int);
98int ** f68(int);
99int * const * f69(int);
100int * const * const f70(int);
101
102int * (f71)(int);
103int ** (f72)(int);
104int * const * (f73)(int);
105int * const * const (f74)(int);
106
107int (* f75)(int);
108int (** f76)(int);
109int (* const * f77)(int);
110int (* const * const f78)(int);
111
112int (* (* f79)(int))();
113int (* (* const f80)(int))();
114int (* const(* const f81)(int))();
115
116#pragma GCC diagnostic pop
117
118int main() {
119        printf("done\n");
120}
121
122// Local Variables: //
123// tab-width: 4 //
124// compile-command: "cfa identFuncDeclarator.cfa" //
125// End: //
Note: See TracBrowser for help on using the repository browser.