📄 struct.c
字号:
#ifdef TEST1struct tag { int good1; register int bad; /* ERROR */ int good2;} badstruct; /* IGNORE */#endif#ifdef TEST2struct tag { int good1; int bad; /* IGNORE */ int bad; /* ERROR */ int good2;} badstruct;#endif#ifdef TEST3struct tag { int good1; int bad:255; /* ERROR */ int good2;} badstruct;#endif#ifdef TEST4struct tag { int good1; int good2;} goodstruct1;struct tag goodstruct2;#endif#ifdef TEST5astruct tag { int good1; int good2;} goodstruct1;union tag badunion; /* ERROR */#endif#ifdef TEST5bunion tag { int good1; int good2;} goodunion1;struct tag badstruct; /* ERROR */#endif#ifdef TEST6struct linklist { struct linklist *prev; struct linklist *next; int x;} ll;#endif#ifdef TEST7aunion tag { struct tag *next; /* ERROR */ int x;} ll;#endif#ifdef TEST7bstruct tag { union tag *next; /* ERROR */ int x;} ll;#endif#ifdef TEST8astruct tag { int a; /* IGNORE */ struct { int a; /* ERROR(SDCC) */ /* IGNORE(GCC) */ int b; };} ll; #endif#ifdef TEST8bstruct tag { int a; struct { int b; int c; };} ll; void test(void){ ll.a = 1; ll.b = 2; ll.c = 3;}#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -