tccgen: accept array-size expressions in function paramters
[tinycc.git] / tests / tests2 / 60_errors_and_warnings.expect
blobac8a965312f071fbcade2b723bd55e11ab957651
1 [test_56_btype_excess_1]
2 60_errors_and_warnings.c:2: error: too many basic types
4 [test_57_btype_excess_2]
5 60_errors_and_warnings.c:5: error: too many basic types
7 [test_58_function_redefinition]
8 60_errors_and_warnings.c:9: error: redefinition of 'f'
10 [test_global_redefinition]
11 60_errors_and_warnings.c:14: error: redefinition of 'xxx'
13 [test_59_function_array]
14 60_errors_and_warnings.c:17: error: declaration of an array of functions
16 [test_60_enum_redefinition]
17 60_errors_and_warnings.c:21: error: struct/union/enum already defined
19 [test_62_enumerator_redefinition]
20 60_errors_and_warnings.c:26: error: redefinition of enumerator 'RED'
22 [test_63_local_enumerator_redefinition]
23 [returns 1]
25 [test_61_undefined_enum]
26 60_errors_and_warnings.c:46: error: unknown type size
28 [test_74_non_const_init]
29 60_errors_and_warnings.c:49: error: initializer element is not constant
31 [test_pointer_assignment]
32 60_errors_and_warnings.c:79: warning: assignment from incompatible pointer type
33 60_errors_and_warnings.c:82: warning: assignment from incompatible pointer type
34 60_errors_and_warnings.c:86: warning: assignment from incompatible pointer type
35 60_errors_and_warnings.c:88: warning: assignment from incompatible pointer type
36 60_errors_and_warnings.c:91: warning: assignment from incompatible pointer type
37 60_errors_and_warnings.c:92: warning: assignment from incompatible pointer type
38 60_errors_and_warnings.c:94: warning: assignment from incompatible pointer type
39 60_errors_and_warnings.c:95: warning: assignment from incompatible pointer type
40 60_errors_and_warnings.c:98: warning: assignment discards qualifiers from pointer target type
41 60_errors_and_warnings.c:99: warning: assignment discards qualifiers from pointer target type
42 60_errors_and_warnings.c:103: warning: assignment discards qualifiers from pointer target type
43 60_errors_and_warnings.c:104: warning: assignment discards qualifiers from pointer target type
44 60_errors_and_warnings.c:109: warning: assignment of read-only location
46 [test_enum_compat]
47 60_errors_and_warnings.c:119: error: incompatible types for redefinition of 'f3'
49 [test_enum_compat_2]
50 60_errors_and_warnings.c:126: error: incompatible types for redefinition of 'f4'
52 [test_ptr_to_str]
53 60_errors_and_warnings.c:129: error: type 'const int **' does not match any association
55 [test_fnptr_to_str]
56 60_errors_and_warnings.c:131: error: type 'int (*(*)(float, char))(double, int)' does not match any association
58 [test_array_to_str]
59 60_errors_and_warnings.c:133: error: type 'int (*)[3]' does not match any association
61 [test_duplicate_def_1]
62 60_errors_and_warnings.c:135: error: redefinition of 'L'
64 [test_duplicate_def_2]
65 60_errors_and_warnings.c:138: error: redeclaration of 'L'
67 [test_abstract_decls]
68 60_errors_and_warnings.c:148: error: identifier expected
70 [test_invalid_1]
71 60_errors_and_warnings.c:153: error: identifier expected
73 [test_invalid_2]
74 60_errors_and_warnings.c:156: error: ';' expected (got "{")
76 [test_invalid_3]
77 60_errors_and_warnings.c:160: error: ',' expected (got "a")
79 [test_invalid_4]
80 60_errors_and_warnings.c:164: error: division by zero in constant
82 [test_conflicting_types]
83 60_errors_and_warnings.c:170: error: incompatible types for redefinition of 'i'
85 [test_nested_types]
86 60_errors_and_warnings.c:177: error: struct/union/enum already defined
88 [test_vla_1]
89 60_errors_and_warnings.c:184: error: need explicit inner array size in VLAs
91 [test_invalid_alignas]
92 60_errors_and_warnings.c:188: error: identifier expected
94 [test_static_assert]
95 60_errors_and_warnings.c:194: error: ONE is not 1
97 [test_static_assert_2]
98 60_errors_and_warnings.c:198: error: 0 is 0
100 [test_static_assert_c2x]
101 60_errors_and_warnings.c:202: error: _Static_assert fail
103 [test_void_array]
104 60_errors_and_warnings.c:205: error: declaration of an array of incomplete type elements
106 [test_incomplete_enum_array]
107 60_errors_and_warnings.c:208: error: declaration of an array of incomplete type elements
109 [test_incomplete_struct_array]
110 60_errors_and_warnings.c:211: error: declaration of an array of incomplete type elements
112 [test_const_fun_array]
113 60_errors_and_warnings.c:215: error: declaration of an array of functions
115 [test_incomplete_array_array]
117 [test_extern_array]
118 60_errors_and_warnings.c:231: error: incompatible types for redefinition of 'x'
120 [test_func_1]
121 hello: a = 123
123 [test_func_2]
124 hello: a = 123
126 [test_func_3]
127 60_errors_and_warnings.c:261: warning: static storage ignored for redefinition of 'hello'
128 hello: a = 123
130 [test_func_4]
131 hello: a = 123
133 [test_func_5]
134 60_errors_and_warnings.c:261: error: incompatible types for redefinition of 'hello'
136 [test_func_6]
137 60_errors_and_warnings.c:249: error: function without file scope cannot be static
139 [test_var_1]
140 main : 1 ; 1
141 main : 2 ; 2
142 bar  : 3 ; 3
144 [test_var_2]
145 main : 1 ; 1
146 main : 2 ; 2
147 bar  : 3 ; 3
149 [test_var_3]
150 60_errors_and_warnings.c:293: error: incompatible types for redefinition of 'xxx'
152 [test_var_4]
154 [test_long_double_type_for_win32]
155 60_errors_and_warnings.c:324: warning: assignment from incompatible pointer type
157 [test_stray_backslash]
158 60_errors_and_warnings.c:330: error: stray '\' in program
160 [test_stray_backslash2]
163 [test_var_array]
164 60_errors_and_warnings.c:345: error: flexible array has zero size in this context
166 [test_var_array2]
167 60_errors_and_warnings.c:355: error: flexible array has zero size in this context
169 [test_var_array3]
170 60_errors_and_warnings.c:362: error: flexible array has zero size in this context
172 [test_default_int_type]
173 60_errors_and_warnings.c:365: warning: type defaults to int
175 [test_invalid_global_stmtexpr]
176 60_errors_and_warnings.c:369: error: statement expression outside of function
178 [test_invalid_tokckill]
179 60_errors_and_warnings.c:372: error: ';' expected (got "3")
181 [test_duplicate_member]
182 60_errors_and_warnings.c:378: error: duplicate member 'a'
184 [test_duplicate_member_anon]
185 60_errors_and_warnings.c:391: error: duplicate member 'd'
187 [test_conflicting_array_definition]
188 60_errors_and_warnings.c:396: error: incompatible types for redefinition of 'array'
190 [test_cast_from_void]
191 60_errors_and_warnings.c:400: error: cannot convert 'void' to 'int'
193 [test_switch_W1]
194 60_errors_and_warnings.c:416: warning: implicit declaration of function 'fink'
196 [test_switch_W2]
197 60_errors_and_warnings.c:407: warning: unsupported option '-Wstuff'
198 60_errors_and_warnings.c:418: warning: 'stuff' attribute ignored
200 [test_switch_W3]
201 60_errors_and_warnings.c:415: error: assignment discards qualifiers from pointer target type
203 [test_switch_W4]
204 60_errors_and_warnings.c:416: warning: implicit declaration of function 'fink'
205 60_errors_and_warnings.c:418: error: 'stuff' attribute ignored
207 [test_invalid_funcparam_1]
208 60_errors_and_warnings.c:421: error: redeclaration of 'a'
210 [test_invalid_funcparam_2]
211 60_errors_and_warnings.c:424: error: identifier expected
213 [test_array_funcparam]
214 arg[0] = "X"
215 arg[1] = "Y"
217 [test_return_from_statement_expr]
218 [returns 78]