tcc -dt -run ... : simpler is better
[tinycc.git] / tests / tests2 / 60_errors_and_warnings.c
blob0028caffb5a1e889282271bc11a6506feee40579
1 #if defined test_56_btype_excess_1
2 struct A {} int i;
4 #elif defined test_57_btype_excess_2
5 char int i;
7 #elif defined test_58_function_redefinition
8 int f(void) { return 0; }
9 int f(void) { return 1; }
11 #elif defined test_global_redefinition
12 int xxx = 1;
13 int xxx;
14 int xxx = 2;
16 #elif defined test_59_function_array
17 int (*fct)[42](int x);
19 #elif defined test_60_enum_redefinition
20 enum color { RED, GREEN, BLUE };
21 enum color { R, G, B };
22 enum color c;
24 #elif defined test_62_enumerator_redefinition
25 enum color { RED, GREEN, BLUE };
26 enum rgb { RED, G, B};
27 enum color c = RED;
29 #elif defined test_63_local_enumerator_redefinition
30 enum {
31 FOO,
32 BAR
35 int main(void)
37 enum {
38 FOO = 2,
39 BAR
42 return BAR - FOO;
45 #elif defined test_61_undefined_enum
46 enum rgb3 c = 42;
48 #elif defined test_74_non_const_init
49 int i = i++;
51 #endif