Comments only, no change to functionality
Showing the changes to tests/tests2 (4 of 19 files). Show all
Unified · Split
| @@ -9,7 +9,7 @@ static void kb_wait_1(void) · 8 unmodified lines | |||
| 9 | /* Here the else arm is a statement expression that's supposed | 9 | /* Here the else arm is a statement expression that's supposed |
| 10 | to be suppressed. The label inside the while would unsuppress | 10 | to be suppressed. The label inside the while would unsuppress |
| 11 | code generation again if not handled correctly. And that | 11 | code generation again if not handled correctly. And that |
| 12 | would wreak havok to the cond-expression because there's no | 12 | would wreak havoc to the cond-expression because there's no |
| 13 | jump-around emitted, the whole statement expression really | 13 | jump-around emitted, the whole statement expression really |
| 14 | needs to not generate code (perhaps except useless forward jumps). */ | 14 | needs to not generate code (perhaps except useless forward jumps). */ |
| 15 | (1 ? | 15 | (1 ? |
| @@ -60,7 +60,7 @@ struct U gu4 = { 3, {5,6,7,}, 5, { "bla", {44}} }; · 59 unmodified lines | |||
| 60 | struct S gs3 = { (1), {(2)}, {(((3))), {4}}}; | 60 | struct S gs3 = { (1), {(2)}, {(((3))), {4}}}; |
| 61 | /* Superfluous braces, and leaving out braces for V.t, plus cast */ | 61 | /* Superfluous braces, and leaving out braces for V.t, plus cast */ |
| 62 | struct V gv = {{{3},4,{5,6}}, "haha", (u8)45, 46}; | 62 | struct V gv = {{{3},4,{5,6}}, "haha", (u8)45, 46}; |
| 63 | /* Compund literal */ | 63 | /* Compound literal */ |
| 64 | struct V gv2 = {(struct S){7,8,{9,10}}, {"hihi", 47}, 48}; | 64 | struct V gv2 = {(struct S){7,8,{9,10}}, {"hihi", 47}, 48}; |
| 65 | /* Parens around compound literal */ | 65 | /* Parens around compound literal */ |
| 66 | struct V gv3 = {((struct S){7,8,{9,10}}), {"hoho", 49}, 50}; | 66 | struct V gv3 = {((struct S){7,8,{9,10}}), {"hoho", 49}, 50}; |
| @@ -157,7 +157,7 @@ void foo (struct W *w, struct pkthdr *phdr_) · 90 unmodified lines | |||
| 157 | struct S ls3 = { (1), (2), {(((3))), 4}}; | 157 | struct S ls3 = { (1), (2), {(((3))), 4}}; |
| 158 | /* Superfluous braces, and leaving out braces for V.t, plus cast */ | 158 | /* Superfluous braces, and leaving out braces for V.t, plus cast */ |
| 159 | struct V lv = {{3,4,{5,6}}, "haha", (u8)45, 46}; | 159 | struct V lv = {{3,4,{5,6}}, "haha", (u8)45, 46}; |
| 160 | /* Compund literal */ | 160 | /* Compound literal */ |
| 161 | struct V lv2 = {(struct S)w->t.s, {"hihi", 47}, 48}; | 161 | struct V lv2 = {(struct S)w->t.s, {"hihi", 47}, 48}; |
| 162 | /* Parens around compound literal */ | 162 | /* Parens around compound literal */ |
| 163 | struct V lv3 = {((struct S){7,8,{9,10}}), ((const struct W *)w)->t.t, 50}; | 163 | struct V lv3 = {((struct S){7,8,{9,10}}), ((const struct W *)w)->t.t, 50}; |
| @@ -89,10 +89,10 @@ struct trapframe { · 88 unmodified lines | |||
| 89 | ///////////////////////////////////////////////////////////////////////// | 89 | ///////////////////////////////////////////////////////////////////////// |
| 90 | ////////// SAFECALL FRAMEWORK | 90 | ////////// SAFECALL FRAMEWORK |
| 91 | ///////////////////////////////////////////////////////////////////////// | 91 | ///////////////////////////////////////////////////////////////////////// |
| 92 | // this framwork will convert any calling convention to cdecl | 92 | // this framework will convert any calling convention to cdecl |
| 93 | // usage: first set call target with 'SET_SAFECALL_TARGET(x)' | 93 | // usage: first set call target with 'SET_SAFECALL_TARGET(x)' |
| 94 | // then cast 'SAFECALL' to target funtion pointer type and invoke it | 94 | // then cast 'SAFECALL' to target function pointer type and invoke it |
| 95 | // after calling, 'ESPDIFF' is the differance of old and new esp | 95 | // after calling, 'ESPDIFF' is the difference of old and new esp |
| 96 | 96 | ||
| 97 | void *SYMBOL(sc_call_target); | 97 | void *SYMBOL(sc_call_target); |
| 98 | unsigned SYMBOL(sc_retn_addr); | 98 | unsigned SYMBOL(sc_retn_addr); |
| @@ -27,7 +27,7 @@ ifeq (-$(findstring gcc,$(CC))-,--) · 26 unmodified lines | |||
| 27 | SKIP += $(patsubst %.expect,%.test,$(GEN-ALWAYS)) | 27 | SKIP += $(patsubst %.expect,%.test,$(GEN-ALWAYS)) |
| 28 | endif | 28 | endif |
| 29 | ifeq (-$(CONFIG_WIN32)-$(CONFIG_i386)$(CONFIG_arm)-,--yes-) | 29 | ifeq (-$(CONFIG_WIN32)-$(CONFIG_i386)$(CONFIG_arm)-,--yes-) |
| 30 | SKIP += 95_bitfields%.test # type_align is differnt on 32bit-non-windows | 30 | SKIP += 95_bitfields%.test # type_align is different on 32bit-non-windows |
| 31 | endif | 31 | endif |
| 32 | 32 | ||
| 33 | # Some tests might need arguments | 33 | # Some tests might need arguments |