Comments only, no change to functionality
Showing the changes to tests (7 of 19 files). Show all
Unified · Split
| @@ -425,7 +425,7 @@ static int two_member_union_test(void) { · 424 unmodified lines | |||
| 425 | } | 425 | } |
| 426 | 426 | ||
| 427 | /* | 427 | /* |
| 428 | * Win64 calling convetntion test. | 428 | * Win64 calling convention test. |
| 429 | */ | 429 | */ |
| 430 | 430 | ||
| 431 | typedef struct many_struct_test_type_s {long long a, b, c;} many_struct_test_type; | 431 | typedef struct many_struct_test_type_s {long long a, b, c;} many_struct_test_type; |
| @@ -14,5 +14,5 @@ return n(0x1E)n(-1); · 13 unmodified lines | |||
| 14 | // unlike gcc but correct | 14 | // unlike gcc but correct |
| 15 | XXX: return n(x)+n(x)-n(1)+n(1)-2; | 15 | XXX: return n(x)+n(x)-n(1)+n(1)-2; |
| 16 | 16 | ||
| 17 | // unlile gcc, but cannot appear in valid C | 17 | // unlike gcc, but cannot appear in valid C |
| 18 | XXX: return n(x)n(x)n(1)n(2)n(x); | 18 | XXX: return n(x)n(x)n(1)n(2)n(x); |
| @@ -384,7 +384,7 @@ void macro_test(void) · 383 unmodified lines | |||
| 384 | MF_s("hi"); | 384 | MF_s("hi"); |
| 385 | MF_t("hi"); | 385 | MF_t("hi"); |
| 386 | 386 | ||
| 387 | /* test macro substituion inside args (should not eat stream) */ | 387 | /* test macro substitution inside args (should not eat stream) */ |
| 388 | printf("qq=%d\n", qq(qq)(2)); | 388 | printf("qq=%d\n", qq(qq)(2)); |
| 389 | 389 | ||
| 390 | /* test zero argument case. NOTE: gcc 2.95.x does not accept a | 390 | /* test zero argument case. NOTE: gcc 2.95.x does not accept a |
| @@ -404,7 +404,7 @@ comment · 13 unmodified lines | |||
| 404 | substituted */ | 404 | substituted */ |
| 405 | TEST2(); | 405 | TEST2(); |
| 406 | 406 | ||
| 407 | /* And again when the name and parenthes are separated by a | 407 | /* And again when the name and parentheses are separated by a |
| 408 | comment. */ | 408 | comment. */ |
| 409 | TEST2 /* the comment */ (); | 409 | TEST2 /* the comment */ (); |
| 410 | 410 | ||
| @@ -3117,7 +3117,7 @@ static __inline__ unsigned long long inc64(unsigned long long a) · 2706 unmodified lines | |||
| 3117 | unsigned long long res; | 3117 | unsigned long long res; |
| 3118 | #ifdef __x86_64__ | 3118 | #ifdef __x86_64__ |
| 3119 | /* Using the A constraint is wrong, and increments are tested | 3119 | /* Using the A constraint is wrong, and increments are tested |
| 3120 | elsewere. */ | 3120 | elsewhere. */ |
| 3121 | res = a + 1; | 3121 | res = a + 1; |
| 3122 | #else | 3122 | #else |
| 3123 | __asm__("addl $1, %%eax ; adcl $0, %%edx" : "=A" (res) : "A" (a)); | 3123 | __asm__("addl $1, %%eax ; adcl $0, %%edx" : "=A" (res) : "A" (a)); |
| @@ -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 |