source: EcnlProtoTool/trunk/tcc-0.9.27/tests/tests2/60_errors_and_warnings.c@ 331

Last change on this file since 331 was 331, checked in by coas-nagasima, 6 years ago

prototoolに関連するプロジェクトをnewlibからmuslを使うよう変更・更新
ntshellをnewlibの下位の実装から、muslのsyscallの実装に変更・更新
以下のOSSをアップデート
・mruby-1.3.0
・musl-1.1.18
・onigmo-6.1.3
・tcc-0.9.27
以下のOSSを追加
・openssl-1.1.0e
・curl-7.57.0
・zlib-1.2.11
以下のmrbgemsを追加
・iij/mruby-digest
・iij/mruby-env
・iij/mruby-errno
・iij/mruby-iijson
・iij/mruby-ipaddr
・iij/mruby-mock
・iij/mruby-require
・iij/mruby-tls-openssl

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-csrc
File size: 857 bytes
Line 
1#if defined test_56_btype_excess_1
2struct A {} int i;
3
4#elif defined test_57_btype_excess_2
5char int i;
6
7#elif defined test_58_function_redefinition
8int f(void) { return 0; }
9int f(void) { return 1; }
10
11#elif defined test_global_redefinition
12int xxx = 1;
13int xxx;
14int xxx = 2;
15
16#elif defined test_59_function_array
17int (*fct)[42](int x);
18
19#elif defined test_60_enum_redefinition
20enum color { RED, GREEN, BLUE };
21enum color { R, G, B };
22enum color c;
23
24#elif defined test_62_enumerator_redefinition
25enum color { RED, GREEN, BLUE };
26enum rgb { RED, G, B};
27enum color c = RED;
28
29#elif defined test_63_local_enumerator_redefinition
30enum {
31 FOO,
32 BAR
33};
34
35int main(void)
36{
37 enum {
38 FOO = 2,
39 BAR
40 };
41
42 return BAR - FOO;
43}
44
45#elif defined test_61_undefined_enum
46enum rgb3 c = 42;
47
48#elif defined test_74_non_const_init
49int i = i++;
50
51#endif
Note: See TracBrowser for help on using the repository browser.