History

Spelling fixes

Comments only, no change to functionality

Larry Doolittle committed 9 years ago

Commit 1b6806e1 parent 44d4da619 files · +28 −28Browse files

Showing the changes to tests (7 of 19 files). Show all

Unified · Split

7 files
  1. tests/abitest.c +1 −1
  2. tests/pp/15.c +1 −1
  3. tests/tcctest.c +3 −3
  4. tests/tests2/87_dead_code.c +1 −1
  5. tests/tests2/90_struct-init.c +2 −2
  6. tests/tests2/99_fastcall.c +3 −3
  7. tests/tests2/Makefile +1 −1
tests/abitest.c+1−1
@@ -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
431typedef struct many_struct_test_type_s {long long a, b, c;} many_struct_test_type;431typedef struct many_struct_test_type_s {long long a, b, c;} many_struct_test_type;
tests/pp/15.c+1−1
@@ -14,5 +14,5 @@ return n(0x1E)n(-1); · 13 unmodified lines
14// unlike gcc but correct14// unlike gcc but correct
15XXX: return n(x)+n(x)-n(1)+n(1)-2;15XXX: return n(x)+n(x)-n(1)+n(1)-2;
16 16
17// unlile gcc, but cannot appear in valid C17// unlike gcc, but cannot appear in valid C
18XXX: return n(x)n(x)n(1)n(2)n(x);18XXX: return n(x)n(x)n(1)n(2)n(x);
tests/tcctest.c+3−3
@@ -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 a390 /* 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 a407 /* 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 tested3119 /* Using the A constraint is wrong, and increments are tested
3120 elsewere. */3120 elsewhere. */
3121 res = a + 1;3121 res = a + 1;
3122#else3122#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));
tests/tests2/87_dead_code.c+1−1
@@ -9,7 +9,7 @@ static void kb_wait_1(void) · 8 unmodified lines
9 /* Here the else arm is a statement expression that's supposed9 /* Here the else arm is a statement expression that's supposed
10 to be suppressed. The label inside the while would unsuppress10 to be suppressed. The label inside the while would unsuppress
11 code generation again if not handled correctly. And that11 code generation again if not handled correctly. And that
12 would wreak havok to the cond-expression because there's no12 would wreak havoc to the cond-expression because there's no
13 jump-around emitted, the whole statement expression really13 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 ?
tests/tests2/90_struct-init.c+2−2
@@ -60,7 +60,7 @@ struct U gu4 = { 3, {5,6,7,}, 5, { "bla", {44}} }; · 59 unmodified lines
60struct S gs3 = { (1), {(2)}, {(((3))), {4}}};60struct 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 */
62struct V gv = {{{3},4,{5,6}}, "haha", (u8)45, 46};62struct V gv = {{{3},4,{5,6}}, "haha", (u8)45, 46};
63/* Compund literal */63/* Compound literal */
64struct V gv2 = {(struct S){7,8,{9,10}}, {"hihi", 47}, 48};64struct V gv2 = {(struct S){7,8,{9,10}}, {"hihi", 47}, 48};
65/* Parens around compound literal */65/* Parens around compound literal */
66struct V gv3 = {((struct S){7,8,{9,10}}), {"hoho", 49}, 50};66struct 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};
tests/tests2/99_fastcall.c+3−3
@@ -89,10 +89,10 @@ struct trapframe { · 88 unmodified lines
89/////////////////////////////////////////////////////////////////////////89/////////////////////////////////////////////////////////////////////////
90////////// SAFECALL FRAMEWORK90////////// SAFECALL FRAMEWORK
91/////////////////////////////////////////////////////////////////////////91/////////////////////////////////////////////////////////////////////////
92// this framwork will convert any calling convention to cdecl92// 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 it94// then cast 'SAFECALL' to target function pointer type and invoke it
95// after calling, 'ESPDIFF' is the differance of old and new esp95// after calling, 'ESPDIFF' is the difference of old and new esp
96 96
97void *SYMBOL(sc_call_target);97void *SYMBOL(sc_call_target);
98unsigned SYMBOL(sc_retn_addr);98unsigned SYMBOL(sc_retn_addr);
tests/tests2/Makefile+1−1
@@ -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))
28endif28endif
29ifeq (-$(CONFIG_WIN32)-$(CONFIG_i386)$(CONFIG_arm)-,--yes-)29ifeq (-$(CONFIG_WIN32)-$(CONFIG_i386)$(CONFIG_arm)-,--yes-)
30 SKIP += 95_bitfields%.test # type_align is differnt on 32bit-non-windows30 SKIP += 95_bitfields%.test # type_align is different on 32bit-non-windows
31endif31endif
32 32
33# Some tests might need arguments33# Some tests might need arguments

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t