div fixes
[tinycc.git] / tests / tests2 / 60_errors_and_warnings.expect
bloba8ef819411e12f73382a326d649772428dc6ba0f
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: initialization of incomplete type
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: expression expected before ','
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_static_assert_empty_string]
104 60_errors_and_warnings.c:205: error: 
106 [test_void_array]
107 60_errors_and_warnings.c:208: error: declaration of an array of incomplete type elements
109 [test_incomplete_enum_array]
110 60_errors_and_warnings.c:211: error: declaration of an array of incomplete type elements
112 [test_incomplete_struct_array]
113 60_errors_and_warnings.c:214: error: declaration of an array of incomplete type elements
115 [test_const_fun_array]
116 60_errors_and_warnings.c:218: error: declaration of an array of functions
118 [test_incomplete_array_array]
120 [test_extern_array]
121 60_errors_and_warnings.c:234: error: incompatible types for redefinition of 'x'
123 [test_func_1]
124 hello: a = 123
126 [test_func_2]
127 hello: a = 123
129 [test_func_3]
130 60_errors_and_warnings.c:264: warning: static storage ignored for redefinition of 'hello'
131 hello: a = 123
133 [test_func_4]
134 hello: a = 123
136 [test_func_5]
137 60_errors_and_warnings.c:264: error: incompatible types for redefinition of 'hello'
139 [test_func_6]
140 60_errors_and_warnings.c:252: error: function without file scope cannot be static
142 [test_var_1]
143 main : 1 ; 1
144 main : 2 ; 2
145 bar  : 3 ; 3
147 [test_var_2]
148 main : 1 ; 1
149 main : 2 ; 2
150 bar  : 3 ; 3
152 [test_var_3]
153 60_errors_and_warnings.c:296: error: incompatible types for redefinition of 'xxx'
155 [test_var_4]
157 [test_long_double_type_for_win32]
158 60_errors_and_warnings.c:327: warning: assignment from incompatible pointer type
160 [test_stray_backslash]
161 60_errors_and_warnings.c:333: error: stray '\' in program
163 [test_stray_backslash2]
166 [test_var_array]
167 60_errors_and_warnings.c:348: error: flexible array has zero size in this context
169 [test_var_array2]
170 60_errors_and_warnings.c:358: error: flexible array has zero size in this context
172 [test_var_array3]
173 60_errors_and_warnings.c:365: error: flexible array has zero size in this context
175 [test_default_int_type]
176 60_errors_and_warnings.c:368: warning: type defaults to int
178 [test_invalid_global_stmtexpr]
179 60_errors_and_warnings.c:372: error: statement expression outside of function
181 [test_invalid_tokckill]
182 60_errors_and_warnings.c:375: error: ';' expected (got "3")
184 [test_duplicate_member]
185 60_errors_and_warnings.c:381: error: duplicate member 'a'
187 [test_duplicate_member_anon]
188 60_errors_and_warnings.c:394: error: duplicate member 'd'
190 [test_conflicting_array_definition]
191 60_errors_and_warnings.c:399: error: incompatible types for redefinition of 'array'
193 [test_incompatible_local_redef]
194 60_errors_and_warnings.c:406: error: incompatible redefinition of 'localfunctype'
196 [test_cast_from_void]
197 60_errors_and_warnings.c:411: error: cannot convert 'void' to 'int'
199 [test_switch_W1]
200 60_errors_and_warnings.c:427: warning: implicit declaration of function 'fink'
202 [test_switch_W2]
203 60_errors_and_warnings.c:418: warning: unsupported option '-Wstuff'
204 60_errors_and_warnings.c:429: warning: 'stuff' attribute ignored
206 [test_switch_W3]
207 60_errors_and_warnings.c:426: error: assignment discards qualifiers from pointer target type
209 [test_switch_W4]
210 60_errors_and_warnings.c:427: warning: implicit declaration of function 'fink'
211 60_errors_and_warnings.c:429: error: 'stuff' attribute ignored
213 [test_invalid_funcparam_1]
214 60_errors_and_warnings.c:432: error: redeclaration of 'a'
216 [test_invalid_funcparam_2]
217 60_errors_and_warnings.c:435: error: identifier expected
219 [test_array_funcparam]
220 arg[0] = "X"
221 arg[1] = "Y"
223 [test_return_from_statement_expr]
224 [returns 78]
226 [test_illegal_unicode]
227 60_errors_and_warnings.c:459: error: 0xffffffff is not a valid universal character
229 [test_error_string]
230 60_errors_and_warnings.c:464: error: #error \123\456
232 [test_error_incomplete_type]
233 60_errors_and_warnings.c:472: error: initialization of incomplete type
235 [test_pp_error_1]
236 60_errors_and_warnings.c:480: error: #if with no expression
238 [test_pp_error_2]
239 60_errors_and_warnings.c:483: error: bad preprocessor expression: #if 0 ( 1 , 2 )
241 [test_pointer_plus_double]
242 60_errors_and_warnings.c:490: error: invalid operand types for binary operation