Mercurial > projects > dstress
changeset 1089:03b5056496f1
pre DMD-0.163 review
line wrap: on
line diff
--- a/run/a/alias_32_A.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/alias_32_A.d Wed Jul 19 21:00:13 2006 +0000 @@ -18,11 +18,11 @@ class A { alias void delegate(Enum) EnumDG; - + void fork(EnumDG dg){ dg(Enum.TWO); } - + void test(Enum e){ if(e != Enum.TWO){ assert(0);
--- a/run/a/alias_32_B.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/alias_32_B.d Wed Jul 19 21:00:13 2006 +0000 @@ -20,7 +20,7 @@ void fork(EnumDG dg){ dg(Enum.TWO); } - + alias void delegate(Enum) EnumDG; void test(Enum e){
--- a/run/a/alias_32_G.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/alias_32_G.d Wed Jul 19 21:00:13 2006 +0000 @@ -18,7 +18,7 @@ class A { alias void function(Enum) EnumDG; - + void fork(EnumDG dg){ dg(Enum.TWO); }
--- a/run/a/array_initialization_17_A.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/array_initialization_17_A.d Wed Jul 19 21:00:13 2006 +0000 @@ -15,7 +15,7 @@ ]; -int main(){ +int main(){ if(month[1] != "Jan"){ assert(0); }
--- a/run/a/array_initialization_17_B.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/array_initialization_17_B.d Wed Jul 19 21:00:13 2006 +0000 @@ -28,7 +28,7 @@ return true; } -int main(){ +int main(){ if(!equal(arr[0], float.nan)){ assert(0); }
--- a/run/a/array_initialization_17_C.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/array_initialization_17_C.d Wed Jul 19 21:00:13 2006 +0000 @@ -28,7 +28,7 @@ return true; } -int main(){ +int main(){ if(!equal(arr[0], cfloat.nan)){ assert(0); }
--- a/run/a/array_initialization_20_B.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/array_initialization_20_B.d Wed Jul 19 21:00:13 2006 +0000 @@ -19,11 +19,11 @@ if(array[0] != 3){ assert(0); } - + if(array[1] != 3){ assert(0); } - + if(array[2] != 4){ assert(0); }
--- a/run/a/array_initialization_20_C.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/array_initialization_20_C.d Wed Jul 19 21:00:13 2006 +0000 @@ -12,7 +12,7 @@ int main(){ X four = cast(X) 4.0; - + X[] array; array.length = 1;
--- a/run/a/array_initialization_20_D.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/array_initialization_20_D.d Wed Jul 19 21:00:13 2006 +0000 @@ -13,7 +13,7 @@ int main(){ X three = cast(X) 3.0; X four = cast(X) 4.0; - + X[] array; array.length = 2; array[] = three; @@ -23,11 +23,11 @@ if(array[0] != three){ assert(0); } - + if(array[1] != three){ assert(0); } - + if(array[2] != four){ assert(0); }
--- a/run/a/array_initialization_20_E.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/array_initialization_20_E.d Wed Jul 19 21:00:13 2006 +0000 @@ -12,7 +12,7 @@ int main(){ X four = cast(X) 4.0i; - + X[] array; array.length = 1;
--- a/run/a/array_initialization_20_F.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/array_initialization_20_F.d Wed Jul 19 21:00:13 2006 +0000 @@ -13,7 +13,7 @@ int main(){ X four = cast(X) 4.0i; X three = cast(X) 3.0i; - + X[] array; array.length = 2; array[] = three; @@ -26,7 +26,7 @@ if(array[1] != three){ assert(0); } - + if(array[2] != four){ assert(0); }
--- a/run/a/array_initialization_20_G.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/array_initialization_20_G.d Wed Jul 19 21:00:13 2006 +0000 @@ -12,7 +12,7 @@ int main(){ X four = cast(X) (4.0i + 0.4); - + X[] array; array.length = 1;
--- a/run/a/array_initialization_20_H.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/array_initialization_20_H.d Wed Jul 19 21:00:13 2006 +0000 @@ -13,7 +13,7 @@ int main(){ X four = cast(X) (4.0i + 0.4); X three = cast(X) (3.0i + 0.3); - + X[] array; array.length = 2; array[] = three; @@ -22,11 +22,11 @@ if(array[0] != three){ assert(0); } - + if(array[1] != three){ assert(0); } - + if(array[2] != four){ assert(0); }
--- a/run/a/asm_cwd_01.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/asm_cwd_01.d Wed Jul 19 21:00:13 2006 +0000 @@ -4,8 +4,14 @@ module dstress.run.a.asm_cwd_01; -int main(){ - version(D_InlineAsm){ +version(D_InlineAsm_X86){ + version = runTest; +}else version(D_InlineAsm_X86_64){ + version = runTest; +} + +version(runTest){ + int main(){ uint i=0x12_3F_FF_FFu; uint ii; short s=-128; @@ -19,12 +25,16 @@ mov ii, EDX; } - assert(i==0x12_3F_FF_80u); - assert(ii==0x12_3F_FF_FFu); + if(i != 0x12_3F_FF_80u){ + assert(0); + } + if(ii != 0x12_3F_FF_FFu){ + assert(0); + } return 0; - }else{ - pragma(msg, "no Inline asm support"); - static assert(0); } -} \ No newline at end of file +}else{ + pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); + static assert(0); +}
--- a/run/a/asm_cwde_01.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/asm_cwde_01.d Wed Jul 19 21:00:13 2006 +0000 @@ -10,13 +10,11 @@ version = runTest; } -int main(){ - version(runTest){ +version(runTest){ + int main(){ uint i=0x12_3F_FF_FFu; short s=-128; - assert(i==0x12_3F_FF_FFu); - asm{ mov EAX, i; mov AX, s; @@ -30,9 +28,8 @@ return 0; - }else{ - pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); - static assert(0); } +}else{ + pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); + static assert(0); } -
--- a/run/a/asm_cx_01.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/asm_cx_01.d Wed Jul 19 21:00:13 2006 +0000 @@ -4,29 +4,37 @@ module dstress.run.a.asm_cx_01; -int main(){ - version(D_InlineAsm){ +version(D_InlineAsm_X86){ + version = runTest; +}else version(D_InlineAsm_X86_64){ + version = runTest; +} + +version(runTest){ + int main(){ byte a = 0x12; byte b = 0x34; short s; - assert(a==0x12); - assert(b==0x34); - assert(s==0x00_00); - asm{ mov CH, a; mov CL, b; mov s, CX; } - assert(a==0x12); - assert(b==0x34); - assert(s==0x12_34); + if(a != 0x12){ + assert(0); + } + if(b != 0x34){ + assert(0); + } + if(s != 0x12_34){ + assert(0); + } return 0; - }else{ - pragma(msg, "no Inline asm support"); - static assert(0); } -} \ No newline at end of file +}else{ + pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); + static assert(0); +}
--- a/run/a/asm_cx_02.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/asm_cx_02.d Wed Jul 19 21:00:13 2006 +0000 @@ -4,15 +4,18 @@ module dstress.run.a.asm_cx_02; -int main(){ - version(D_InlineAsm){ +version(D_InlineAsm_X86){ + version = runTest; +}else version(D_InlineAsm_X86_64){ + version = runTest; +} + +version(runTest){ + int main(){ byte a = 0; byte b = 0; - short s=0x12_34; + short s = 0x12_34; - assert(a==0); - assert(b==0); - assert(s==0x12_34); asm{ mov CX, s; @@ -20,13 +23,19 @@ mov b, CL; } - assert(s==0x12_34); - assert(a==0x12); - assert(b==0x34); + if(s != 0x12_34){ + assert(0); + } + if(a != 0x12){ + assert(0); + } + if(b != 0x34){ + assert(0); + } return 0; - }else{ - pragma(msg, "no Inline asm support"); - static assert(0); } -} \ No newline at end of file +}else{ + pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); + static assert(0); +}
--- a/run/a/asm_dh_01.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/asm_dh_01.d Wed Jul 19 21:00:13 2006 +0000 @@ -4,25 +4,32 @@ module dstress.run.a.asm_dh_01; -int main(){ - version(D_InlineAsm){ +version(D_InlineAsm_X86){ + version = runTest; +}else version(D_InlineAsm_X86_64){ + version = runTest; +} + +version(runTest){ + int main(){ byte a=0x12; byte b; - assert(a==0x12); - assert(b==0); - asm{ mov DH, a; mov b, DH; } - assert(a==0x12); - assert(b==0x12); + if(a != 0x12){ + assert(0); + } + if(b != 0x12){ + assert(0); + } return 0; - }else{ - pragma(msg, "no Inline asm support"); - static assert(0); } -} \ No newline at end of file +}else{ + pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); + static assert(0); +}
--- a/run/a/asm_di_01.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/asm_di_01.d Wed Jul 19 21:00:13 2006 +0000 @@ -4,25 +4,32 @@ module dstress.run.a.asm_di_01; -int main(){ - version(D_InlineAsm){ +version(D_InlineAsm_X86){ + version = runTest; +}else version(D_InlineAsm_X86_64){ + version = runTest; +} + +version(runTest){ + int main(){ short a=0x12_34; short b; - assert(a==0x12_34); - assert(b==0); - asm{ mov DI, a; mov b, DI; } - assert(a==0x12_34); - assert(b==0x12_34); + if(a != 0x12_34){ + assert(0); + } + if(b != 0x12_34){ + assert(0); + } return 0; - }else{ - pragma(msg, "no Inline asm support"); - static assert(0); } -} \ No newline at end of file +}else{ + pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); + static assert(0); +}
--- a/run/a/asm_dl_01.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/asm_dl_01.d Wed Jul 19 21:00:13 2006 +0000 @@ -4,25 +4,32 @@ module dstress.run.a.asm_dl_01; -int main(){ - version(D_InlineAsm){ +version(D_InlineAsm_X86){ + version = runTest; +}else version(D_InlineAsm_X86_64){ + version = runTest; +} + +version(runTest){ + int main(){ byte a=0x12; byte b; - assert(a==0x12); - assert(b==0); - asm{ mov DL, a; mov b, DL; } - assert(a==0x12); - assert(b==0x12); + if(a != 0x12){ + assert(0); + } + if(b != 0x12){ + assert(0); + } return 0; - }else{ - pragma(msg, "no Inline asm support"); - static assert(0); } -} \ No newline at end of file +}else{ + pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); + static assert(0); +}
--- a/run/a/asm_dx_01.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/asm_dx_01.d Wed Jul 19 21:00:13 2006 +0000 @@ -4,29 +4,37 @@ module dstress.run.a.asm_dx_01; -int main(){ - version(D_InlineAsm){ +version(D_InlineAsm_X86){ + version = runTest; +}else version(D_InlineAsm_X86_64){ + version = runTest; +} + +version(runTest){ + int main(){ byte a = 0x12; byte b = 0x34; short s; - assert(a==0x12); - assert(b==0x34); - assert(s==0x00_00); - asm{ mov DH, a; mov DL, b; mov s, DX; } - assert(a==0x12); - assert(b==0x34); - assert(s==0x12_34); + if(a != 0x12){ + assert(0); + } + if(b != 0x34){ + assert(0); + } + if(s != 0x12_34){ + assert(0); + } return 0; - }else{ - pragma(msg, "no Inline asm support"); - static assert(0); } -} \ No newline at end of file +}else{ + pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); + static assert(0); +}
--- a/run/a/asm_dx_02.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/asm_dx_02.d Wed Jul 19 21:00:13 2006 +0000 @@ -4,29 +4,37 @@ module dstress.run.a.asm_dx_02; -int main(){ - version(D_InlineAsm){ +version(D_InlineAsm_X86){ + version = runTest; +}else version(D_InlineAsm_X86_64){ + version = runTest; +} + +version(runTest){ + int main(){ byte a = 0; byte b = 0; short s=0x12_34; - assert(a==0); - assert(b==0); - assert(s==0x12_34); - asm{ mov DX, s; mov a, DH; mov b, DL; } - assert(s==0x12_34); - assert(a==0x12); - assert(b==0x34); + if(s != 0x12_34){ + assert(0); + } + if(a != 0x12){ + assert(0); + } + if(b != 0x34){ + assert(0); + } return 0; - }else{ - pragma(msg, "no Inline asm support"); - static assert(0); } -} \ No newline at end of file +}else{ + pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); + static assert(0); +}
--- a/run/a/asm_eax_01.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/asm_eax_01.d Wed Jul 19 21:00:13 2006 +0000 @@ -4,26 +4,33 @@ module dstress.run.a.asm_eax_01; -int main(){ - version(D_InlineAsm){ +version(D_InlineAsm_X86){ + version = runTest; +}else version(D_InlineAsm_X86_64){ + version = runTest; +} + +version(runTest){ + int main(){ int i; short s=0x12_34; - assert(i==0); - assert(s==0x12_34); - asm{ mov EAX, i; mov AX, s; mov i, EAX; } - assert(i==0x00_00_12_34); - assert(s==0x12_34); + if(i != 0x00_00_12_34){ + assert(0); + } + if(s != 0x12_34){ + assert(0); + } return 0; - }else{ - pragma(msg, "no Inline asm support"); - static assert(0); } -} \ No newline at end of file +}else{ + pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); + static assert(0); +}
--- a/run/a/asm_eax_02.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/asm_eax_02.d Wed Jul 19 21:00:13 2006 +0000 @@ -4,25 +4,32 @@ module dstress.run.a.asm_eax_02; -int main(){ - version(D_InlineAsm){ +version(D_InlineAsm_X86){ + version = runTest; +}else version(D_InlineAsm_X86_64){ + version = runTest; +} + +version(runTest){ + int main(){ int i=0x12_34_56_78; short s=0; - assert(i==0x12_34_56_78); - assert(s==0); - asm{ mov EAX, i; mov s, AX; } - assert(i==0x12_34_56_78); - assert(s==0x56_78); + if(i != 0x12_34_56_78){ + assert(0); + } + if(s != 0x56_78){ + assert(0); + } return 0; - }else{ - pragma(msg, "no Inline asm support"); - static assert(0); } -} \ No newline at end of file +}else{ + pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); + static assert(0); +}
--- a/run/a/asm_ebx_01.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/asm_ebx_01.d Wed Jul 19 21:00:13 2006 +0000 @@ -4,26 +4,33 @@ module dstress.run.a.asm_ebx_01; -int main(){ - version(D_InlineAsm){ +version(D_InlineAsm_X86){ + version = runTest; +}else version(D_InlineAsm_X86_64){ + version = runTest; +} + +version(runTest){ + int main(){ int i; short s=0x12_34; - assert(i==0); - assert(s==0x12_34); - asm{ mov EBX, i; mov BX, s; mov i, EBX; } - assert(i==0x00_00_12_34); - assert(s==0x12_34); + if(i != 0x00_00_12_34){ + assert(0); + } + if(s != 0x12_34){ + assert(0); + } return 0; - }else{ - pragma(msg, "no Inline asm support"); - static assert(0); } -} \ No newline at end of file +}else{ + pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); + static assert(0); +}
--- a/run/a/asm_ebx_02.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/asm_ebx_02.d Wed Jul 19 21:00:13 2006 +0000 @@ -4,25 +4,32 @@ module dstress.run.a.asm_ebx_02; -int main(){ - version(D_InlineAsm){ +version(D_InlineAsm_X86){ + version = runTest; +}else version(D_InlineAsm_X86_64){ + version = runTest; +} + +version(runTest){ + int main(){ int i=0x12_34_56_78; short s=0; - assert(i==0x12_34_56_78); - assert(s==0); - asm{ mov EBX, i; mov s, BX; } - assert(i==0x12_34_56_78); - assert(s==0x56_78); + if(i != 0x12_34_56_78){ + assert(0); + } + if(s != 0x56_78){ + assert(0); + } return 0; - }else{ - pragma(msg, "no Inline asm support"); - static assert(0); } -} \ No newline at end of file +}else{ + pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); + static assert(0); +}
--- a/run/a/asm_ecx_01.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/asm_ecx_01.d Wed Jul 19 21:00:13 2006 +0000 @@ -4,26 +4,33 @@ module dstress.run.a.asm_ecx_01; -int main(){ - version(D_InlineAsm){ +version(D_InlineAsm_X86){ + version = runTest; +}else version(D_InlineAsm_X86_64){ + version = runTest; +} + +version(runTest){ + int main(){ int i; short s=0x12_34; - assert(i==0); - assert(s==0x12_34); - asm{ mov ECX, i; mov CX, s; mov i, ECX; } - assert(i==0x00_00_12_34); - assert(s==0x12_34); + if(i != 0x00_00_12_34){ + assert(0); + } + if(s != 0x12_34){ + assert(0); + } return 0; - }else{ - pragma(msg, "no Inline asm support"); - static assert(0); } -} \ No newline at end of file +}else{ + pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); + static assert(0); +}
--- a/run/a/asm_ecx_02.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/asm_ecx_02.d Wed Jul 19 21:00:13 2006 +0000 @@ -4,25 +4,32 @@ module dstress.run.a.asm_ecx_02; -int main(){ - version(D_InlineAsm){ +version(D_InlineAsm_X86){ + version = runTest; +}else version(D_InlineAsm_X86_64){ + version = runTest; +} + +version(runTest){ + int main(){ int i=0x12_34_56_78; short s=0; - assert(i==0x12_34_56_78); - assert(s==0); - asm{ mov ECX, i; mov s, CX; } - assert(i==0x12_34_56_78); - assert(s==0x56_78); + if(i != 0x12_34_56_78){ + assert(0); + } + if(s != 0x56_78){ + assert(0); + } return 0; - }else{ - pragma(msg, "no Inline asm support"); - static assert(0); } -} \ No newline at end of file +}else{ + pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); + static assert(0); +}
--- a/run/a/asm_edi_01.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/asm_edi_01.d Wed Jul 19 21:00:13 2006 +0000 @@ -4,26 +4,33 @@ module dstress.run.a.asm_edi_01; -int main(){ - version(D_InlineAsm){ +version(D_InlineAsm_X86){ + version = runTest; +}else version(D_InlineAsm_X86_64){ + version = runTest; +} + +version(runTest){ + int main(){ int i; short s=0x12_34; - assert(i==0); - assert(s==0x12_34); - asm{ mov EDI, 0; mov DI, s; mov i, EDI; } - assert(i==0x12_34); - assert(s==0x12_34); + if(i != 0x12_34){ + assert(0); + } + if(s != 0x12_34){ + assert(0); + } return 0; - }else{ - pragma(msg, "no Inline asm support"); - static assert(0); } -} \ No newline at end of file +}else{ + pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); + static assert(0); +}
--- a/run/a/asm_edi_02.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/asm_edi_02.d Wed Jul 19 21:00:13 2006 +0000 @@ -2,27 +2,34 @@ // $Date$ // $Author$ -module dstress.run.a.asm_edi_01; +module dstress.run.a.asm_edi_02; -int main(){ - version(D_InlineAsm){ +version(D_InlineAsm_X86){ + version = runTest; +}else version(D_InlineAsm_X86_64){ + version = runTest; +} + +version(runTest){ + int main(){ int i = 0x12_34_56_78; short s=0; - assert(i==0x12_34_56_78); - assert(s==0); - asm{ mov EDI, i; mov s, DI; } - assert(i==0x12_34_56_78); - assert(s==0x56_78); + if(i != 0x12_34_56_78){ + assert(0); + } + if(s != 0x56_78){ + assert(0); + } return 0; - }else{ - pragma(msg, "no Inline asm support"); - static assert(0); } -} \ No newline at end of file +}else{ + pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); + static assert(0); +}
--- a/run/a/asm_edx_01.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/asm_edx_01.d Wed Jul 19 21:00:13 2006 +0000 @@ -4,26 +4,33 @@ module dstress.run.a.asm_edx_01; -int main(){ - version(D_InlineAsm){ +version(D_InlineAsm_X86){ + version = runTest; +}else version(D_InlineAsm_X86_64){ + version = runTest; +} + +version(runTest){ + int main(){ int i; short s=0x12_34; - assert(i==0); - assert(s==0x12_34); - asm{ mov EDX, i; mov DX, s; mov i, EDX; } - assert(i==0x00_00_12_34); - assert(s==0x12_34); + if(i != 0x00_00_12_34){ + assert(0); + } + if(s != 0x12_34){ + assert(0); + } return 0; - }else{ - pragma(msg, "no Inline asm support"); - static assert(0); } -} \ No newline at end of file +}else{ + pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); + static assert(0); +}
--- a/run/a/asm_edx_02.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/asm_edx_02.d Wed Jul 19 21:00:13 2006 +0000 @@ -4,25 +4,32 @@ module dstress.run.a.asm_edx_02; -int main(){ - version(D_InlineAsm){ +version(D_InlineAsm_X86){ + version = runTest; +}else version(D_InlineAsm_X86_64){ + version = runTest; +} + +version(runTest){ + int main(){ int i=0x12_34_56_78; short s=0; - assert(i==0x12_34_56_78); - assert(s==0); - asm{ mov EDX, i; mov s, DX; } - assert(i==0x12_34_56_78); - assert(s==0x56_78); + if(i != 0x12_34_56_78){ + assert(0); + } + if(s != 0x56_78){ + assert(0); + } return 0; - }else{ - pragma(msg, "no Inline asm support"); - static assert(0); } -} \ No newline at end of file +}else{ + pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); + static assert(0); +}
--- a/run/a/asm_esi_01.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/asm_esi_01.d Wed Jul 19 21:00:13 2006 +0000 @@ -4,26 +4,33 @@ module dstress.run.a.asm_esi_01; -int main(){ - version(D_InlineAsm){ +version(D_InlineAsm_X86){ + version = runTest; +}else version(D_InlineAsm_X86_64){ + version = runTest; +} + +version(runTest){ + int main(){ int i; short s=0x12_34; - assert(i==0); - assert(s==0x12_34); - asm{ mov ESI, 0; mov SI, s; mov i, ESI; } - assert(i==0x12_34); - assert(s==0x12_34); + if(i != 0x12_34){ + assert(0); + } + if(s != 0x12_34){ + assert(0); + } return 0; - }else{ - pragma(msg, "no Inline asm support"); - static assert(0); } +}else{ + pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); + static assert(0); }
--- a/run/a/asm_esi_02.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/asm_esi_02.d Wed Jul 19 21:00:13 2006 +0000 @@ -4,25 +4,32 @@ module dstress.run.a.asm_esi_01; -int main(){ - version(D_InlineAsm){ +version(D_InlineAsm_X86){ + version = runTest; +}else version(D_InlineAsm_X86_64){ + version = runTest; +} + +version(runTest){ + int main(){ int i = 0x12_34_56_78; short s=0; - assert(i==0x12_34_56_78); - assert(s==0); - asm{ mov ESI, i; mov s, SI; } - assert(i==0x12_34_56_78); - assert(s==0x56_78); + if(i != 0x12_34_56_78){ + assert(0); + } + if(s != 0x56_78){ + assert(0); + } return 0; - }else{ - pragma(msg, "no Inline asm support"); - static assert(0); } -} \ No newline at end of file +}else{ + pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); + static assert(0); +}
--- a/run/a/asm_si_01.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/asm_si_01.d Wed Jul 19 21:00:13 2006 +0000 @@ -4,25 +4,32 @@ module dstress.run.a.asm_si_01; -int main(){ - version(D_InlineAsm){ +version(D_InlineAsm_X86){ + version = runTest; +}else version(D_InlineAsm_X86_64){ + version = runTest; +} + +version(runTest){ + int main(){ short a=0x12_34; short b; - assert(a==0x12_34); - assert(b==0); - asm{ mov SI, a; mov b, SI; } - assert(a==0x12_34); - assert(b==0x12_34); + if(a != 0x12_34){ + assert(0); + } + if(b != 0x12_34){ + assert(0); + } return 0; - }else{ - pragma(msg, "no Inline asm support"); - static assert(0); } -} \ No newline at end of file +}else{ + pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); + static assert(0); +}
--- a/run/a/associative_array_18_A.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/associative_array_18_A.d Wed Jul 19 21:00:13 2006 +0000 @@ -25,5 +25,5 @@ aa[o] = o; - return 0; + return 0; }
--- a/run/a/associative_array_18_B.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/associative_array_18_B.d Wed Jul 19 21:00:13 2006 +0000 @@ -25,5 +25,5 @@ aa[o] = o; - return 0; + return 0; }
--- a/run/a/associative_array_18_C.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/associative_array_18_C.d Wed Jul 19 21:00:13 2006 +0000 @@ -25,5 +25,5 @@ aa[o] = o; - return 0; + return 0; }
--- a/run/a/associative_array_18_D.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/associative_array_18_D.d Wed Jul 19 21:00:13 2006 +0000 @@ -25,5 +25,5 @@ aa[o] = o; - return 0; + return 0; }
--- a/run/a/associative_array_19_A.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/associative_array_19_A.d Wed Jul 19 21:00:13 2006 +0000 @@ -21,11 +21,11 @@ value.x += 1; _value = value; } - + Key value() { return _value; } - + Key _value; } @@ -43,7 +43,7 @@ foreach(Key key; allKeys) { aa[key] = new Payload(key); } - + for(size_t step = 0; step < 10000; step++){ foreach(Key key; allKeys) { if(!(key in aa)){
--- a/run/a/associative_array_19_B.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/associative_array_19_B.d Wed Jul 19 21:00:13 2006 +0000 @@ -22,11 +22,11 @@ value.x += 1; _value = value; } - + Key value() { return _value; } - + Key _value; } @@ -44,7 +44,7 @@ foreach(Key key; allKeys) { aa[key] = new Payload(key); } - + for(size_t step = 0; step < 10000; step++){ foreach(Key key; allKeys) { if(!(key in aa)){
--- a/run/a/associative_array_19_C.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/associative_array_19_C.d Wed Jul 19 21:00:13 2006 +0000 @@ -22,11 +22,11 @@ value.x += 1; _value = value; } - + Key value() { return _value; } - + Key _value; } @@ -44,7 +44,7 @@ foreach(Key key; allKeys) { aa[key] = new Payload(key); } - + for(size_t step = 0; step < 10000; step++){ foreach(Key key; allKeys) { if(!(key in aa)){
--- a/run/a/associative_array_19_D.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/associative_array_19_D.d Wed Jul 19 21:00:13 2006 +0000 @@ -22,11 +22,11 @@ value.x += 1; _value = value; } - + Key value() { return _value; } - + Key _value; } @@ -44,7 +44,7 @@ foreach(Key key; allKeys) { aa[key] = new Payload(key); } - + for(size_t step = 0; step < 10000; step++){ foreach(Key key; allKeys) { if(!(key in aa)){
--- a/run/a/associative_array_19_E.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/associative_array_19_E.d Wed Jul 19 21:00:13 2006 +0000 @@ -22,11 +22,11 @@ value.x += 1; _value = value; } - + Key value() { return _value; } - + Key _value; } @@ -44,7 +44,7 @@ foreach(Key key; allKeys) { aa[key] = new Payload(key); } - + for(size_t step = 0; step < 10000; step++){ foreach(Key key; allKeys) { if(!(key in aa)){
--- a/run/a/associative_array_19_F.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/associative_array_19_F.d Wed Jul 19 21:00:13 2006 +0000 @@ -22,11 +22,11 @@ value.x += 1; _value = value; } - + Key value() { return _value; } - + Key _value; } @@ -44,7 +44,7 @@ foreach(Key key; allKeys) { aa[key] = new Payload(key); } - + for(size_t step = 0; step < 10000; step++){ foreach(Key key; allKeys) { if(!(key in aa)){
--- a/run/a/associative_array_19_G.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/associative_array_19_G.d Wed Jul 19 21:00:13 2006 +0000 @@ -22,11 +22,11 @@ value.x += 1; _value = value; } - + Key value() { return _value; } - + Key _value; } @@ -44,7 +44,7 @@ foreach(Key key; allKeys) { aa[key] = new Payload(key); } - + for(size_t step = 0; step < 10000; step++){ foreach(Key key; allKeys) { if(!(key in aa)){
--- a/run/a/associative_array_19_H.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/associative_array_19_H.d Wed Jul 19 21:00:13 2006 +0000 @@ -22,11 +22,11 @@ value.x += 1; _value = value; } - + Key value() { return _value; } - + Key _value; } @@ -44,7 +44,7 @@ foreach(Key key; allKeys) { aa[key] = new Payload(key); } - + for(size_t step = 0; step < 10000; step++){ foreach(Key key; allKeys) { if(!(key in aa)){
--- a/run/a/associative_array_19_I.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/associative_array_19_I.d Wed Jul 19 21:00:13 2006 +0000 @@ -22,11 +22,11 @@ value.x += 1; _value = value; } - + Key value() { return _value; } - + Key _value; } @@ -44,7 +44,7 @@ foreach(Key key; allKeys) { aa[key] = new Payload(key); } - + for(size_t step = 0; step < 10000; step++){ foreach(Key key; allKeys) { if(!(key in aa)){
--- a/run/a/associative_array_19_J.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/associative_array_19_J.d Wed Jul 19 21:00:13 2006 +0000 @@ -22,7 +22,7 @@ value.x += 1; this.value = value; } - + Key value; } @@ -40,7 +40,7 @@ foreach(Key key; allKeys) { aa[key] = new Payload(key); } - + for(size_t step = 0; step < 10000; step++){ foreach(Key key; allKeys) { if(!(key in aa)){
--- a/run/a/associative_array_19_K.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/associative_array_19_K.d Wed Jul 19 21:00:13 2006 +0000 @@ -22,7 +22,7 @@ value.x += 1; this.value = value; } - + Key value; } @@ -40,7 +40,7 @@ foreach(Key key; allKeys) { aa[key] = new Payload(key); } - + for(size_t step = 0; step < 10000; step++){ foreach(Key key; allKeys) { if(!(key in aa)){
--- a/run/a/associative_array_19_L.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/associative_array_19_L.d Wed Jul 19 21:00:13 2006 +0000 @@ -22,7 +22,7 @@ value.x += 1; this.value = value; } - + Key value; } @@ -40,7 +40,7 @@ foreach(Key key; allKeys) { aa[key] = new Payload(key); } - + for(size_t step = 0; step < 10000; step++){ foreach(Key key; allKeys) { if(!(key in aa)){
--- a/run/a/associative_array_19_M.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/associative_array_19_M.d Wed Jul 19 21:00:13 2006 +0000 @@ -22,7 +22,7 @@ value.x += 1; this.value = value; } - + Key value; } @@ -40,7 +40,7 @@ foreach(Key key; allKeys) { aa[key] = new Payload(key); } - + for(size_t step = 0; step < 10000; step++){ foreach(Key key; allKeys) { if(!(key in aa)){
--- a/run/a/associative_array_19_N.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/associative_array_19_N.d Wed Jul 19 21:00:13 2006 +0000 @@ -22,7 +22,7 @@ value.x += 1; this.value = value; } - + Key value; } @@ -40,7 +40,7 @@ foreach(Key key; allKeys) { aa[key] = new Payload(key); } - + for(size_t step = 0; step < 10000; step++){ foreach(Key key; allKeys) { if(!(key in aa)){
--- a/run/a/associative_array_19_O.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/associative_array_19_O.d Wed Jul 19 21:00:13 2006 +0000 @@ -22,7 +22,7 @@ value.x += 1; this.value = value; } - + Key value; } @@ -40,7 +40,7 @@ foreach(Key key; allKeys) { aa[key] = new Payload(key); } - + for(size_t step = 0; step < 10000; step++){ foreach(Key key; allKeys) { if(!(key in aa)){
--- a/run/a/associative_array_19_P.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/associative_array_19_P.d Wed Jul 19 21:00:13 2006 +0000 @@ -22,7 +22,7 @@ value.x += 1; this.value = value; } - + Key value; } @@ -40,7 +40,7 @@ foreach(Key key; allKeys) { aa[key] = new Payload(key); } - + for(size_t step = 0; step < 10000; step++){ foreach(Key key; allKeys) { if(!(key in aa)){
--- a/run/a/associative_array_19_Q.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/associative_array_19_Q.d Wed Jul 19 21:00:13 2006 +0000 @@ -22,7 +22,7 @@ value.x += 1; this.value = value; } - + Key value; } @@ -40,7 +40,7 @@ foreach(Key key; allKeys) { aa[key] = new Payload(key); } - + for(size_t step = 0; step < 10000; step++){ foreach(Key key; allKeys) { if(!(key in aa)){
--- a/run/a/associative_array_19_R.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/associative_array_19_R.d Wed Jul 19 21:00:13 2006 +0000 @@ -21,7 +21,7 @@ value.x += 1; this.value = value; } - + Key value; ubyte[1] dummy; @@ -41,7 +41,7 @@ foreach(Key key; allKeys) { aa[key] = new Payload(key); } - + for(size_t step = 0; step < 10000; step++){ foreach(Key key; allKeys) { if(!(key in aa)){
--- a/run/a/associative_array_19_S.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/associative_array_19_S.d Wed Jul 19 21:00:13 2006 +0000 @@ -21,7 +21,7 @@ value.x += 1; this.value = value; } - + Key value; ubyte[2] dummy; @@ -41,7 +41,7 @@ foreach(Key key; allKeys) { aa[key] = new Payload(key); } - + for(size_t step = 0; step < 10000; step++){ foreach(Key key; allKeys) { if(!(key in aa)){
--- a/run/a/associative_array_19_T.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/associative_array_19_T.d Wed Jul 19 21:00:13 2006 +0000 @@ -21,7 +21,7 @@ value.x += 1; this.value = value; } - + Key value; ubyte[3] dummy; @@ -41,7 +41,7 @@ foreach(Key key; allKeys) { aa[key] = new Payload(key); } - + for(size_t step = 0; step < 10000; step++){ foreach(Key key; allKeys) { if(!(key in aa)){
--- a/run/a/associative_array_19_U.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/associative_array_19_U.d Wed Jul 19 21:00:13 2006 +0000 @@ -21,7 +21,7 @@ value.x += 1; this.value = value; } - + Key value; ubyte[4] dummy; @@ -41,7 +41,7 @@ foreach(Key key; allKeys) { aa[key] = new Payload(key); } - + for(size_t step = 0; step < 10000; step++){ foreach(Key key; allKeys) { if(!(key in aa)){
--- a/run/a/associative_array_19_V.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/associative_array_19_V.d Wed Jul 19 21:00:13 2006 +0000 @@ -21,7 +21,7 @@ value.x += 1; this.value = value; } - + Key value; ubyte[3] dummy; @@ -41,7 +41,7 @@ foreach(Key key; allKeys) { aa[key] = new Payload(key); } - + for(size_t step = 0; step < 10000; step++){ foreach(Key key; allKeys) { if(!(key in aa)){
--- a/run/a/associative_array_19_W.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/associative_array_19_W.d Wed Jul 19 21:00:13 2006 +0000 @@ -21,7 +21,7 @@ value.x += 1; this.value = value; } - + Key value; ubyte[2] dummy; @@ -41,7 +41,7 @@ foreach(Key key; allKeys) { aa[key] = new Payload(key); } - + for(size_t step = 0; step < 10000; step++){ foreach(Key key; allKeys) { if(!(key in aa)){
--- a/run/a/associative_array_19_X.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/associative_array_19_X.d Wed Jul 19 21:00:13 2006 +0000 @@ -21,7 +21,7 @@ value.x += 1; this.value = value; } - + Key value; ubyte[1] dummy; @@ -41,7 +41,7 @@ foreach(Key key; allKeys) { aa[key] = new Payload(key); } - + for(size_t step = 0; step < 10000; step++){ foreach(Key key; allKeys) { if(!(key in aa)){
--- a/run/a/associative_array_19_Y.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/associative_array_19_Y.d Wed Jul 19 21:00:13 2006 +0000 @@ -21,7 +21,7 @@ value.x += 1; _value = value; } - + Key _value; Key value(){ @@ -43,7 +43,7 @@ foreach(Key key; allKeys) { aa[key] = new Payload(key); } - + for(size_t step = 0; step < 10000; step++){ foreach(Key key; allKeys) { if(!(key in aa)){
--- a/run/a/associative_array_19_Z.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/associative_array_19_Z.d Wed Jul 19 21:00:13 2006 +0000 @@ -21,7 +21,7 @@ value.x += 1; _value = value; } - + Key _value; Key value(){ @@ -47,7 +47,7 @@ foreach(Key key; allKeys) { aa[key] = new Payload(key); } - + for(size_t step = 0; step < 10000; step++){ foreach(Key key; allKeys) { if(!(key in aa)){
--- a/run/a/auto_10_A.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/auto_10_A.d Wed Jul 19 21:00:13 2006 +0000 @@ -6,10 +6,10 @@ int main(){ auto x = 4.0; - + if(typeid(typeof(x)).toString() != "double"){ assert(0); } - + return 0; }
--- a/run/a/auto_10_B.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/auto_10_B.d Wed Jul 19 21:00:13 2006 +0000 @@ -6,10 +6,10 @@ int main(){ auto x = 4; - + if(typeid(typeof(x)).toString() != "int"){ assert(0); } - + return 0; }
--- a/run/a/auto_11_A.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/auto_11_A.d Wed Jul 19 21:00:13 2006 +0000 @@ -18,7 +18,7 @@ if(i != 5){ assert(0); } - + return 0; }
--- a/run/a/auto_11_B.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/auto_11_B.d Wed Jul 19 21:00:13 2006 +0000 @@ -16,13 +16,13 @@ int main(){ C c = new C(); - + auto i = c.value(); if(i != 5){ assert(0); } - + return 0; }
--- a/run/a/auto_11_C.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/auto_11_C.d Wed Jul 19 21:00:13 2006 +0000 @@ -16,13 +16,13 @@ int main(){ S s; - + auto i = s.value(); if(i != 5){ assert(0); } - + return 0; }
--- a/run/a/auto_13_A.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/auto_13_A.d Wed Jul 19 21:00:13 2006 +0000 @@ -12,7 +12,7 @@ class Class { int id; - + this (int id) { this.id = id; status ~= id;
--- a/run/a/auto_13_B.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/auto_13_B.d Wed Jul 19 21:00:13 2006 +0000 @@ -12,7 +12,7 @@ class Class { int id; - + this (int id) { this.id = id; status ~= id;
--- a/run/a/auto_14_A.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/auto_14_A.d Wed Jul 19 21:00:13 2006 +0000 @@ -18,7 +18,6 @@ ~this(){ hadDtor = true; throw new Exception("should never throw"); - } }
--- a/run/a/auto_14_B.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/auto_14_B.d Wed Jul 19 21:00:13 2006 +0000 @@ -18,7 +18,6 @@ ~this(){ hadDtor = true; throw new Exception("should never throw"); - } }
--- a/run/a/auto_16_F.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/auto_16_F.d Wed Jul 19 21:00:13 2006 +0000 @@ -25,7 +25,7 @@ if((new C()).toString() != "hallo bug"){ assert(0); } - + version(always){ if(c.toString() != "hallo bug"){ assert(0);
--- a/run/a/auto_18_A.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/auto_18_A.d Wed Jul 19 21:00:13 2006 +0000 @@ -42,7 +42,7 @@ if(a[1][2] != 4){ assert(0); } - + if(a[2].length != 1){ assert(0); }
--- a/run/a/auto_18_B.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/a/auto_18_B.d Wed Jul 19 21:00:13 2006 +0000 @@ -42,7 +42,7 @@ if(a[1][2] != 4){ assert(0); } - + if(a[2].length != 1){ assert(0); }
--- a/run/b/bool_01.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bool_01.d Wed Jul 19 21:00:13 2006 +0000 @@ -6,21 +6,38 @@ int main(){ bool a; - assert(a.max == 1); - assert(a.min == 0); - assert(a.init == 0); + if(a.max != 1){ + assert(0); + } + if(a.min != 0){ + assert(0); + } + if(a.init != 0){ + assert(0); + } - assert(a.sizeof == typeid( bool ).tsize()); - + if(a.sizeof != typeid( bool ).tsize()){ + assert(0); + } + a = true; - assert( a == 1); + if(a != 1){ + assert(0); + } bool b = 1; - assert( b == 1); - + if(b != 1){ + assert(0); + } + bool c = false; - assert( c == 0); + if(c != 0){ + assert(0); + } + bool d = 0; - assert( d == 0); - - return 0; + if(d != 0){ + assert(0); + } + + return 0; }
--- a/run/b/bool_03.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bool_03.d Wed Jul 19 21:00:13 2006 +0000 @@ -8,85 +8,189 @@ bool a; bool b; bool c; - + a = false; b = !a; - assert( a == false ); - assert( b == true ); + if(a != false){ + assert(0); + } + if(b != true){ + assert(0); + } a = true; b = !a; - assert( a == true ); - assert( b == false ); - + if(a != true){ + assert(0); + } + if(b != false){ + assert(0); + } + // AndAnd a=true; b=true; c=a&&b; - assert( a == true ); - assert( b == true ); - assert( c == true ); + if(a != true){ + assert(0); + } + if(b != true){ + assert(0); + } + if(c != true){ + assert(0); + } a=true; b=false; c=a&&b; - assert( a == true ); - assert( b == false ); - assert( c == false ); + if(a != true){ + assert(0); + } + if(b != false){ + assert(0); + } + if(c != false){ + assert(0); + } a=false; b=true; c=a&&b; - assert( a == false ); - assert( b == true ); - assert( c == false ); + if(a != false){ + assert(0); + } + if(b != true){ + assert(0); + } + if(c != false){ + assert(0); + } a=false; b=false; c=a&&b; - assert( a == false ); - assert( b == false ); - assert( c == false ); + if(a != false){ + assert(0); + } + if(b != false){ + assert(0); + } + if(c != false){ + assert(0); + } // OrOr a=true; b=true; c=a||b; - assert( a == true ); - assert( b == true ), - assert( c == true ); + if(a != true){ + assert(0); + } + if(b != true){ + assert(0); + } + if(c != true){ + assert(0); + } a=true; b=false; c=a||b; - assert( a == true ); - assert( b == false ); - assert( c == true ); + if(a != true){ + assert(0); + } + if(b != false){ + assert(0); + } + if(c != true){ + assert(0); + } a=false; b=true; c=a||b; - assert( a == false ); - assert( b == true ); - assert( c == true ); + if(a != false){ + assert(0); + } + if(b != true){ + assert(0); + } + if(c != true){ + assert(0); + } a=false; b=false; c=a||b; - assert( a == false ); - assert( b == false ); - assert( c == false ); - + if(a != false){ + assert(0); + } + if(b != false){ + assert(0); + } + if(c != false){ + assert(0); + } + // Equality Expression ("==") a=true; b=true; c= a==b; - assert( a == true ); - assert( b == true ); - assert( c == true ); + if(a != true){ + assert(0); + } + if(b != true){ + assert(0); + } + if(c != true){ + assert(0); + } a=true; b=false; c= a==b; - assert( a == true ); - assert( b == false ); - assert( c == false ); + if(a != true){ + assert(0); + } + if(b != false){ + assert(0); + } + if(c != false){ + assert(0); + } a=false; b=true; c= a==b; - assert( a == false ); - assert( b == true ); - assert( c == false ); + if(a != false){ + assert(0); + } + if(b != true){ + assert(0); + } + if(c != false){ + assert(0); + } a=false; b=false; c= a==b; - assert( a == false ); - assert( b == false ); - assert( c == true ); + if(a != false){ + assert(0); + } + if(b != false){ + assert(0); + } + if(c != true){ + assert(0); + } // Inequality Expression ("!=") a=true; b=true; c= a!=b; - assert( a == true ); - assert( b == true ); - assert( c == false ); + if(a != true){ + assert(0); + } + if(b != true){ + assert(0); + } + if(c != false){ + assert(0); + } a=true; b=false; c= a!=b; - assert( a == true ); - assert( b == false ); - assert( c == true ); + if(a != true){ + assert(0); + } + if(b != false){ + assert(0); + } + if(c != true){ + assert(0); + } a=false; b=true; c= a!=b; - assert( a == false ); - assert( b == true ); - assert( c == true ); + if(a != false){ + assert(0); + } + if(b != true){ + assert(0); + } + if(c != true){ + assert(0); + } a=false; b=false; c= a!=b; - assert( a == false ); - assert( b == false ); - assert( c == false ); - - return 0; + if(a != false){ + assert(0); + } + if(b != false){ + assert(0); + } + if(c != false){ + assert(0); + } + + return 0; }
--- a/run/b/bug_cg87_1240_A.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cg87_1240_A.d Wed Jul 19 21:00:13 2006 +0000 @@ -12,9 +12,9 @@ int main(){ real r; - + if (r > ireal.max){ assert(0); - } + } return 0; }
--- a/run/b/bug_cg87_1240_B.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cg87_1240_B.d Wed Jul 19 21:00:13 2006 +0000 @@ -12,9 +12,9 @@ int main(){ ireal r; - + if (r > real.max){ assert(0); - } + } return 0; }
--- a/run/b/bug_cg87_1240_C.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cg87_1240_C.d Wed Jul 19 21:00:13 2006 +0000 @@ -12,9 +12,9 @@ int main(){ float r; - + if (r < ifloat.max){ assert(0); - } + } return 0; }
--- a/run/b/bug_cg87_1240_D.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cg87_1240_D.d Wed Jul 19 21:00:13 2006 +0000 @@ -12,9 +12,9 @@ int main(){ ifloat r; - + if (r < float.max){ assert(0); - } + } return 0; }
--- a/run/b/bug_cg87_1240_E.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cg87_1240_E.d Wed Jul 19 21:00:13 2006 +0000 @@ -12,9 +12,9 @@ int main(){ double r; - + if (r == idouble.max){ assert(0); - } + } return 0; }
--- a/run/b/bug_cg87_1240_F.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cg87_1240_F.d Wed Jul 19 21:00:13 2006 +0000 @@ -12,9 +12,9 @@ int main(){ idouble r; - + if (r == double.max){ assert(0); - } + } return 0; }
--- a/run/b/bug_cgcod_562_O1.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cgcod_562_O1.d Wed Jul 19 21:00:13 2006 +0000 @@ -19,16 +19,20 @@ int main(){ cfloat[2] array; array[0] = 2.0 + 0.0i; - + bug(array); array[0] -= 1.0; if(array[0].re < 0.0){ array[0] *= -1; } - - assert(array[0].re < float.epsilon * 4.0); - assert(array[0].im < float.epsilon * 4.0); - + + if(array[0].re > float.epsilon * 4.0f){ + assert(0); + } + if(array[0].im > float.epsilon * 4.0f){ + assert(0); + } + return 0; }
--- a/run/b/bug_cgcod_562_O2.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cgcod_562_O2.d Wed Jul 19 21:00:13 2006 +0000 @@ -19,16 +19,20 @@ int main(){ cfloat[2] array; array[0] = 2.0 + 0.0i; - + bug(array); array[0] -= 1.0; if(array[0].re < 0.0){ array[0] *= -1; } - - assert(array[0].re < float.epsilon * 4.0); - assert(array[0].im < float.epsilon * 4.0); - + + if(array[0].re > float.epsilon * 4.0f){ + assert(0); + } + if(array[0].im > float.epsilon * 4.0f){ + assert(0); + } + return 0; }
--- a/run/b/bug_cgcod_562_O3.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cgcod_562_O3.d Wed Jul 19 21:00:13 2006 +0000 @@ -19,16 +19,20 @@ int main(){ cfloat[2] array; array[0] = 2.0f + 0.0fi; - + bug(array); array[0] -= 1.0; if(array[0].re < 0.0){ array[0] *= -1; } - - assert(array[0].re < float.epsilon * 4.0); - assert(array[0].im < float.epsilon * 4.0); - + + if(array[0].re > float.epsilon * 4.0){ + assert(0); + } + if(array[0].im > float.epsilon * 4.0){ + assert(0); + } + return 0; }
--- a/run/b/bug_cgcod_562_P1.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cgcod_562_P1.d Wed Jul 19 21:00:13 2006 +0000 @@ -19,16 +19,20 @@ int main(){ cdouble[2] array; array[0] = 2.0 + 0.0i; - + bug(array); array[0] -= 1.0; if(array[0].re < 0.0){ array[0] *= -1; } - - assert(array[0].re < double.epsilon * 4.0); - assert(array[0].im < double.epsilon * 4.0); - + + if(array[0].re > double.epsilon * 4.0){ + assert(0); + } + if(array[0].im > double.epsilon * 4.0){ + assert(0); + } + return 0; }
--- a/run/b/bug_cgcod_562_P2.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cgcod_562_P2.d Wed Jul 19 21:00:13 2006 +0000 @@ -19,16 +19,20 @@ int main(){ cdouble[2] array; array[0] = 2.0 + 0.0i; - + bug(array); array[0] -= 1.0; if(array[0].re < 0.0){ array[0] *= -1; } - - assert(array[0].re < double.epsilon * 4.0); - assert(array[0].im < double.epsilon * 4.0); - + + if(array[0].re > double.epsilon * 4.0){ + assert(0); + } + if(array[0].im > double.epsilon * 4.0){ + assert(0); + } + return 0; }
--- a/run/b/bug_cgcod_562_P3.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cgcod_562_P3.d Wed Jul 19 21:00:13 2006 +0000 @@ -19,16 +19,20 @@ int main(){ cdouble[2] array; array[0] = 2.0 + 0.0i; - + bug(array); array[0] -= 1.0; if(array[0].re < 0.0){ array[0] *= -1; } - - assert(array[0].re < double.epsilon * 4.0); - assert(array[0].im < double.epsilon * 4.0); - + + if(array[0].re > double.epsilon * 4.0){ + assert(0); + } + if(array[0].im > double.epsilon * 4.0){ + assert(0); + } + return 0; }
--- a/run/b/bug_cgcod_562_Q1.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cgcod_562_Q1.d Wed Jul 19 21:00:13 2006 +0000 @@ -19,16 +19,20 @@ int main(){ creal[2] array; array[0] = 2.0L + 0.0Li; - + bug(array); array[0] -= 1.0L; if(array[0].re < 0.0L){ array[0] *= -1; } - - assert(array[0].re < real.epsilon * 4.0L); - assert(array[0].im < real.epsilon * 4.0L); - + + if(array[0].re > real.epsilon * 4.0L){ + assert(0); + } + if(array[0].im > real.epsilon * 4.0L){ + assert(0); + } + return 0; }
--- a/run/b/bug_cgcod_562_Q2.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cgcod_562_Q2.d Wed Jul 19 21:00:13 2006 +0000 @@ -19,16 +19,20 @@ int main(){ creal[2] array; array[0] = 2.0L + 0.0Li; - + bug(array); array[0] -= 1.0L; if(array[0].re < 0.0L){ array[0] *= -1; } - - assert(array[0].re < real.epsilon * 4.0L); - assert(array[0].im < real.epsilon * 4.0L); - + + if(array[0].re > real.epsilon * 4.0L){ + assert(0); + } + if(array[0].im > real.epsilon * 4.0L){ + assert(0); + } + return 0; }
--- a/run/b/bug_cgcod_562_Q3.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cgcod_562_Q3.d Wed Jul 19 21:00:13 2006 +0000 @@ -19,16 +19,20 @@ int main(){ creal[2] array; array[0] = 2.0L + 0.0Li; - + bug(array); array[0] -= 1.0L; if(array[0].re < 0.0L){ array[0] *= -1.0L; } - - assert(array[0].re < real.epsilon * 4.0L); - assert(array[0].im < real.epsilon * 4.0L); - + + if(array[0].re > real.epsilon * 4.0L){ + assert(0); + } + if(array[0].im > real.epsilon * 4.0L){ + assert(0); + } + return 0; }
--- a/run/b/bug_cgcs_353_A3.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cgcs_353_A3.d Wed Jul 19 21:00:13 2006 +0000 @@ -16,11 +16,15 @@ int main(){ Foo[] foos; - assert(foos.length==0); + if(foos.length != 0){ + assert(0); + } foos = new Foo() ~ foos; - - assert(foos.length==1); - + + if(foos.length != 1){ + assert(0); + } + return 0; -} \ No newline at end of file +}
--- a/run/b/bug_cgcs_353_B3.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cgcs_353_B3.d Wed Jul 19 21:00:13 2006 +0000 @@ -16,11 +16,15 @@ int main(){ Foo[] foos; - assert(foos.length==0); + if(foos.length != 0){ + assert(0); + } foos = new Foo() ~ foos[]; - - assert(foos.length==1); - + + if(foos.length != 1){ + assert(0); + } + return 0; }
--- a/run/b/bug_cgcs_353_C3.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cgcs_353_C3.d Wed Jul 19 21:00:13 2006 +0000 @@ -16,11 +16,15 @@ int main(){ Foo[] foos; - assert(foos.length==0); + if(foos.length != 0){ + assert(0); + } foos = foos ~ new Foo(); - - assert(foos.length==1); - + + if(foos.length != 1){ + assert(0); + } + return 0; -} \ No newline at end of file +}
--- a/run/b/bug_cgcs_353_D3.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cgcs_353_D3.d Wed Jul 19 21:00:13 2006 +0000 @@ -16,11 +16,15 @@ int main(){ Foo[] foos; - assert(foos.length==0); + if(foos.length != 0){ + assert(0); + } foos = foos[] ~ new Foo(); - - assert(foos.length==1); - + + if(foos.length != 1){ + assert(0); + } + return 0; }
--- a/run/b/bug_cgcs_353_E2.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cgcs_353_E2.d Wed Jul 19 21:00:13 2006 +0000 @@ -16,8 +16,12 @@ arr = arr ~ 1; - assert(arr[0]==2); - assert(arr[1]==1); + if(arr[0] != 2){ + assert(0); + } + if(arr[1] != 1){ + assert(0); + } return 0; }
--- a/run/b/bug_cgcs_353_E3.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cgcs_353_E3.d Wed Jul 19 21:00:13 2006 +0000 @@ -11,12 +11,18 @@ int main(){ int[] foos; - assert(foos.length==0); + if(foos.length != 0){ + assert(0); + } foos = foos[] ~ 3; - - assert(foos.length==1); - assert(foos[0]==3); - + + if(foos.length != 1){ + assert(0); + } + if(foos[0] != 3){ + assert(0); + } + return 0; }
--- a/run/b/bug_cgcs_353_F2.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cgcs_353_F2.d Wed Jul 19 21:00:13 2006 +0000 @@ -16,8 +16,12 @@ arr = arr ~ 1; - assert(arr[0]==2); - assert(arr[1]==1); + if(arr[0] != 2){ + assert(0); + } + if(arr[1] != 1){ + assert(0); + } return 0; }
--- a/run/b/bug_cgcs_353_F3.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cgcs_353_F3.d Wed Jul 19 21:00:13 2006 +0000 @@ -11,11 +11,15 @@ int main(){ int[] foos; - assert(foos.length==0); + if(foos.length != 0){ + assert(0); + } foos = 3 ~ foos[]; - - assert(foos.length==1); - + + if(foos.length != 1){ + assert(0); + } + return 0; }
--- a/run/b/bug_cgcs_353_G2.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cgcs_353_G2.d Wed Jul 19 21:00:13 2006 +0000 @@ -16,8 +16,12 @@ arr = arr ~ 1; - assert(arr[0]==2); - assert(arr[1]==1); + if(arr[0] != 2){ + assert(0); + } + if(arr[1] != 1){ + assert(0); + } return 0; }
--- a/run/b/bug_cgcs_353_G3.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cgcs_353_G3.d Wed Jul 19 21:00:13 2006 +0000 @@ -14,11 +14,15 @@ int main(){ Foo*[] foos; - assert(foos.length==0); + if(foos.length != 0){ + assert(0); + } foos = new Foo() ~ foos[]; - - assert(foos.length==1); - + + if(foos.length != 1){ + assert(0); + } + return 0; }
--- a/run/b/bug_cgcs_353_H2.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cgcs_353_H2.d Wed Jul 19 21:00:13 2006 +0000 @@ -16,8 +16,12 @@ arr = arr ~ 1; - assert(arr[0]==2); - assert(arr[1]==1); + if(arr[0] != 2){ + assert(0); + } + if(arr[1] != 1){ + assert(0); + } return 0; }
--- a/run/b/bug_cgcs_353_H3.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cgcs_353_H3.d Wed Jul 19 21:00:13 2006 +0000 @@ -14,11 +14,15 @@ int main(){ Foo*[] foos; - assert(foos.length==0); + if(foos.length != 0){ + assert(0); + } foos = foos[] ~ new Foo(); - - assert(foos.length==1); - + + if(foos.length != 1){ + assert(0); + } + return 0; }
--- a/run/b/bug_cgcs_353_I2.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cgcs_353_I2.d Wed Jul 19 21:00:13 2006 +0000 @@ -16,8 +16,12 @@ arr = arr ~ 1.0f; - assert(arr[0]==2.0f); - assert(arr[1]==1.0f); + if(arr[0] != 2.0f){ + assert(0); + } + if(arr[1] != 1.0f){ + assert(0); + } return 0; }
--- a/run/b/bug_cgcs_353_I3.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cgcs_353_I3.d Wed Jul 19 21:00:13 2006 +0000 @@ -14,11 +14,15 @@ int main(){ Foo*[] foos; - assert(foos.length==0); + if(foos.length != 0){ + assert(0); + } foos = foos[] ~ new Foo(); - - assert(foos.length==1); - + + if(foos.length != 1){ + assert(0); + } + return 0; }
--- a/run/b/bug_cgcs_353_J3.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cgcs_353_J3.d Wed Jul 19 21:00:13 2006 +0000 @@ -17,8 +17,10 @@ assert(foos.length==0); foos = new Foo() ~ foos[]; - - assert(foos.length==1); - + + if(foos.length != 1){ + assert(0); + } + return 0; }
--- a/run/b/bug_cgcs_353_K3.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cgcs_353_K3.d Wed Jul 19 21:00:13 2006 +0000 @@ -18,8 +18,10 @@ assert(foos.length==0); foos = new Foo() ~ foos[]; - - assert(foos.length==1); - + + if(foos.length != 1){ + assert(0); + } + return 0; }
--- a/run/b/bug_cgcs_353_L3.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cgcs_353_L3.d Wed Jul 19 21:00:13 2006 +0000 @@ -18,8 +18,10 @@ assert(foos.length==0); foos = foos[] ~ new Foo(); - - assert(foos.length==1); - + + if(foos.length != 1){ + assert(0); + } + return 0; }
--- a/run/b/bug_cod1_2504_D.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cod1_2504_D.d Wed Jul 19 21:00:13 2006 +0000 @@ -10,7 +10,7 @@ class C{ C[] c; - + this(){ c ~= c; } @@ -18,6 +18,9 @@ int main(){ C c = new C(); - assert(c.c.length==0); + + if(c.c.length != 0){ + assert(0); + } return 0; -} \ No newline at end of file +}
--- a/run/b/bug_cod2_4211_S.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cod2_4211_S.d Wed Jul 19 21:00:13 2006 +0000 @@ -22,6 +22,9 @@ d.a=1; d.b=2; d.c=3; - assert(bar(d)==6); + + if(bar(d) != 6){ + assert(0); + } return 0; }
--- a/run/b/bug_cod2_4211_T.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cod2_4211_T.d Wed Jul 19 21:00:13 2006 +0000 @@ -21,6 +21,9 @@ Foo d; d.a=1; d.b=2; - assert(bar(d)==3); + + if(bar(d) != 3){ + assert(0); + } return 0; }
--- a/run/b/bug_cod2_4211_U.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cod2_4211_U.d Wed Jul 19 21:00:13 2006 +0000 @@ -22,6 +22,9 @@ d.a=1; d.b=2; d.c=3; - assert(bar(d)==6); + + if(bar(d) != 6){ + assert(0); + } return 0; }
--- a/run/b/bug_cod2_4211_V.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cod2_4211_V.d Wed Jul 19 21:00:13 2006 +0000 @@ -22,6 +22,9 @@ d.a=true; d.b=false; d.c=true; - assert(bar(d)==4); + + if(bar(d) != 4){ + assert(0); + } return 0; }
--- a/run/b/bug_cod2_4211_W.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cod2_4211_W.d Wed Jul 19 21:00:13 2006 +0000 @@ -22,6 +22,9 @@ d.a=1; d.b=2; d.c=3; - assert(bar(d)==14); + + if(bar(d) != 14){ + assert(0); + } return 0; }
--- a/run/b/bug_cod3_736_A.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cod3_736_A.d Wed Jul 19 21:00:13 2006 +0000 @@ -15,11 +15,11 @@ real foo(){ return 0;; } - + void bar(out Struct Q){ if (foo < 0){ Q = *this; - } + } } } @@ -31,8 +31,10 @@ ss.id=2; s.bar(ss); - assert(ss.id==0); - - return 0; + if(ss.id != 0){ + assert(0); + } + + return 0; }
--- a/run/b/bug_cod3_736_B.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_cod3_736_B.d Wed Jul 19 21:00:13 2006 +0000 @@ -15,11 +15,11 @@ real foo(){ return 0; } - + void bar(out Struct Q){ if (foo < 0){ Q = *this; - } + } } } @@ -31,8 +31,10 @@ ss.id=2; s.bar(ss); - assert(ss.id==0); - - return 0; + if(ss.id != 0){ + assert(0); + } + + return 0; }
--- a/run/b/bug_d_codegen_1560_A.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_d_codegen_1560_A.d Wed Jul 19 21:00:13 2006 +0000 @@ -8,17 +8,17 @@ module dstress.run.b.bug_d_codegen_1560_A; class C{ - + void set(void[] result){ } - + void set(int result){ set((&result)[0 .. 1]); } - + void get(void[] value){ } - + void get(int value){ get((&value)[0 .. 1]); }
--- a/run/b/bug_d_codegen_1560_B.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_d_codegen_1560_B.d Wed Jul 19 21:00:13 2006 +0000 @@ -8,17 +8,17 @@ module dstress.run.b.bug_d_codegen_1560_B; struct S{ - + void set(void[] result){ } - + void set(int result){ set((&result)[0 .. 1]); } - + void get(void[] value){ } - + void get(int value){ get((&value)[0 .. 1]); }
--- a/run/b/bug_d_codegen_981_A.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_d_codegen_981_A.d Wed Jul 19 21:00:13 2006 +0000 @@ -12,11 +12,15 @@ int main(){ char [] bar="test"; char [] foo; - + foo="<"~bar[0]; - - assert(foo.length==2); - assert(foo=="<t"); - + + if(foo.length != 2){ + assert(0); + } + if(foo != "<t"){ + assert(0); + } + return 0; -} \ No newline at end of file +}
--- a/run/b/bug_e2ir_1786_D.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_e2ir_1786_D.d Wed Jul 19 21:00:13 2006 +0000 @@ -13,7 +13,7 @@ int main(){ SomeObject[] arr = new SomeObject[1]; - + arr[0]=new SomeObject(); if(arr[0] < arr[0]){ @@ -21,4 +21,4 @@ }else{ return 0; } -} \ No newline at end of file +}
--- a/run/b/bug_e2ir_2452_B.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_e2ir_2452_B.d Wed Jul 19 21:00:13 2006 +0000 @@ -18,8 +18,12 @@ int main(){ C c = new C(); - assert(c.c.length==1); - assert(c.c[0] is c); - + if(c.c.length != 1){ + assert(0); + } + if(!(c.c[0] is c)){ + assert(0); + } + return 0; -} \ No newline at end of file +}
--- a/run/b/bug_expression_4275_A.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_expression_4275_A.d Wed Jul 19 21:00:13 2006 +0000 @@ -15,7 +15,7 @@ return x; } } - + int dummy; } @@ -29,9 +29,13 @@ int main(){ Container container = new Container(); MyClass myclass = new MyClass(); - - assert( container.element.foo!(MyClass).sizeof == (MyClass[]).sizeof ); - assert( myclass.foo!(MyClass).length == 0 || myclass.foo!(MyClass)[0] is myclass ); + + if(container.element.foo!(MyClass).sizeof != (MyClass[]).sizeof){ + assert(0); + } + if(!(myclass.foo!(MyClass).length == 0 || myclass.foo!(MyClass)[0] is myclass )){ + assert(0); + } return 0; -} \ No newline at end of file +}
--- a/run/b/bug_expression_4275_B.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_expression_4275_B.d Wed Jul 19 21:00:13 2006 +0000 @@ -15,7 +15,7 @@ return x; } } - + int dummy; } @@ -29,9 +29,13 @@ int main(){ Container container = new Container(); MyClass myclass = new MyClass(); - - assert( container.element().foo!(MyClass).sizeof == (MyClass[]).sizeof ); - assert( myclass.foo!(MyClass).length == 0 || myclass.foo!(MyClass)[0] is myclass ); + + if(container.element().foo!(MyClass).sizeof != (MyClass[]).sizeof ){ + assert(0); + } + if(!(myclass.foo!(MyClass).length == 0 || myclass.foo!(MyClass)[0] is myclass )){ + assert(0); + } return 0; -} \ No newline at end of file +}
--- a/run/b/bug_expression_5818_A.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_expression_5818_A.d Wed Jul 19 21:00:13 2006 +0000 @@ -28,11 +28,15 @@ s.value = 2; add(s); - assert(status == 1); + if(status != 1){ + assert(0); + } s.value = 0; add(s); - assert(status == -1); + if(status != -1){ + assert(0); + } return 0; }
--- a/run/b/bug_expression_5818_B.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_expression_5818_B.d Wed Jul 19 21:00:13 2006 +0000 @@ -28,11 +28,15 @@ s.value = 2; add(s); - assert(status == 1); + if(status != 1){ + assert(0); + } s.value = 0; add(s); - assert(status == -1); + if(status != -1){ + assert(0); + } return 0; }
--- a/run/b/bug_glue_387_A.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_glue_387_A.d Wed Jul 19 21:00:13 2006 +0000 @@ -9,6 +9,13 @@ module dstress.run.b.bug_glue_387_A; +version(D_InlineAsm_X86){ +}else version(D_InlineAsm){ +}else{ + pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); + static assert(0); +} + enum msync{ acq, rel, @@ -36,7 +43,9 @@ void testStore(){ T base; Atomic!(T) atom; - assert(atom.m_val == base); + if(atom.m_val != base){ + assert(0); + } atom.store!(ms)(); } } @@ -51,4 +60,4 @@ int main(){ testType!(int)(); return 0; -} \ No newline at end of file +}
--- a/run/b/bug_glue_387_B.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_glue_387_B.d Wed Jul 19 21:00:13 2006 +0000 @@ -9,6 +9,13 @@ module dstress.run.b.bug_glue_387_B; +version(D_InlineAsm_X86){ +}else version(D_InlineAsm){ +}else{ + pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); + static assert(0); +} + enum msync{ acq, rel, @@ -36,7 +43,9 @@ void testStore(){ T base; Atomic!(T) atom; - assert(atom.m_val == base); + if(atom.m_val != base){ + assert(0); + } atom.store!(ms)(); } } @@ -51,4 +60,4 @@ int main(){ testType!(int)(); return 0; -} \ No newline at end of file +}
--- a/run/b/bug_glue_387_C.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_glue_387_C.d Wed Jul 19 21:00:13 2006 +0000 @@ -9,6 +9,13 @@ module dstress.run.b.bug_glue_387_C; +version(D_InlineAsm_X86){ +}else version(D_InlineAsm){ +}else{ + pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); + static assert(0); +} + enum msync{ acq, rel, @@ -36,7 +43,9 @@ void testStore(){ T base; Atomic!(T) atom; - assert(atom.m_val == base); + if(atom.m_val != base){ + assert(0); + } atom.store!(ms)(); } } @@ -50,4 +59,4 @@ int main(){ testType!(int)(); return 0; -} \ No newline at end of file +}
--- a/run/b/bug_glue_387_D.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_glue_387_D.d Wed Jul 19 21:00:13 2006 +0000 @@ -9,6 +9,13 @@ module dstress.run.b.bug_glue_387_C; +version(D_InlineAsm_X86){ +}else version(D_InlineAsm){ +}else{ + pragma(msg, "DSTRESS{XFAIL}: no inline ASM support"); + static assert(0); +} + enum msync{ acq, rel, @@ -36,7 +43,9 @@ void testStore(){ T base; Atomic!(T) atom; - assert(atom.m_val == base); + if(atom.m_val != base){ + assert(0); + } atom.store!(ms)(); } } @@ -50,4 +59,4 @@ int main(){ testType!(int)(); return 0; -} \ No newline at end of file +}
--- a/run/b/bug_mtype_2226_A.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_mtype_2226_A.d Wed Jul 19 21:00:13 2006 +0000 @@ -18,7 +18,7 @@ int main(){ typeof( {} ) foo; - + C c = new C(); foo = &c.bar;
--- a/run/b/bug_mtype_2226_B.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_mtype_2226_B.d Wed Jul 19 21:00:13 2006 +0000 @@ -22,7 +22,7 @@ int main(){ mixin foo!(); - + C c = new C(); foo = &c.bar;
--- a/run/b/bug_template_622_A.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_template_622_A.d Wed Jul 19 21:00:13 2006 +0000 @@ -18,6 +18,6 @@ if(func(1) != 2){ assert(0); } - + return 0; }
--- a/run/b/bug_template_622_B.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_template_622_B.d Wed Jul 19 21:00:13 2006 +0000 @@ -18,6 +18,6 @@ if(func!(int)(1) != 2){ assert(0); } - + return 0; }
--- a/run/b/bug_template_622_C.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_template_622_C.d Wed Jul 19 21:00:13 2006 +0000 @@ -18,6 +18,6 @@ if(func!(int, 2)(1) != 3){ assert(0); } - + return 0; }
--- a/run/b/bug_toobj_191_A.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_toobj_191_A.d Wed Jul 19 21:00:13 2006 +0000 @@ -5,7 +5,7 @@ // @author@ Ant^2i <Ant^2i_member@pathlink.com> // @date@ 2005-07-04 // @uri@ news:dabjsi$16h8$1@digitaldaemon.com -// @desc@ toobj.c:191: virtual void ClassDeclaration::toObjFile(): Assertion `!scope' failed +// @desc@ toobj.c:191: virtual void ClassDeclaration::toObjFile(): Assertion `!scope' failed module dstress.run.b.bug_toobj_191_A;
--- a/run/b/bug_toobj_191_B.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_toobj_191_B.d Wed Jul 19 21:00:13 2006 +0000 @@ -5,7 +5,7 @@ // @author@ Ant^2i <Ant^2i_member@pathlink.com> // @date@ 2005-07-04 // @uri@ news:dabjsi$16h8$1@digitaldaemon.com -// @desc@ toobj.c:191: virtual void ClassDeclaration::toObjFile(): Assertion `!scope' failed +// @desc@ toobj.c:191: virtual void ClassDeclaration::toObjFile(): Assertion `!scope' failed module dstress.run.b.bug_toobj_191_B;
--- a/run/b/bug_toobj_191_C.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_toobj_191_C.d Wed Jul 19 21:00:13 2006 +0000 @@ -5,7 +5,7 @@ // @author@ Ant^2i <Ant^2i_member@pathlink.com> // @date@ 2005-07-04 // @uri@ news:dabjsi$16h8$1@digitaldaemon.com -// @desc@ toobj.c:191: virtual void ClassDeclaration::toObjFile(): Assertion `!scope' failed +// @desc@ toobj.c:191: virtual void ClassDeclaration::toObjFile(): Assertion `!scope' failed module dstress.run.b.bug_toobj_191_C;
--- a/run/b/bug_toobj_191_D.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_toobj_191_D.d Wed Jul 19 21:00:13 2006 +0000 @@ -5,7 +5,7 @@ // @author@ Ant^2i <Ant^2i_member@pathlink.com> // @date@ 2005-07-04 // @uri@ news:dabjsi$16h8$1@digitaldaemon.com -// @desc@ toobj.c:191: virtual void ClassDeclaration::toObjFile(): Assertion `!scope' failed +// @desc@ toobj.c:191: virtual void ClassDeclaration::toObjFile(): Assertion `!scope' failed module dstress.run.b.bug_toobj_191_D;
--- a/run/b/bug_toobj_191_E.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_toobj_191_E.d Wed Jul 19 21:00:13 2006 +0000 @@ -5,7 +5,7 @@ // @author@ Ant^2i <Ant^2i_member@pathlink.com> // @date@ 2005-07-04 // @uri@ news:dabjsi$16h8$1@digitaldaemon.com -// @desc@ toobj.c:191: virtual void ClassDeclaration::toObjFile(): Assertion `!scope' failed +// @desc@ toobj.c:191: virtual void ClassDeclaration::toObjFile(): Assertion `!scope' failed module dstress.run.b.bug_toobj_191_E;
--- a/run/b/bug_type_308_A.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_type_308_A.d Wed Jul 19 21:00:13 2006 +0000 @@ -8,7 +8,7 @@ module dstress.run.b.bug_type_308_A; -int main() { +int main() { int [3][3] x; x[1][1 .. 3] = 1;
--- a/run/b/bug_type_308_B.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_type_308_B.d Wed Jul 19 21:00:13 2006 +0000 @@ -10,7 +10,7 @@ struct S{ int i; - + static S foo(int x){ S s;
--- a/run/b/bug_type_308_C.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_type_308_C.d Wed Jul 19 21:00:13 2006 +0000 @@ -10,7 +10,7 @@ struct S{ int i; - + static S foo(int x){ S s;
--- a/run/b/bug_type_308_D.d Wed Jul 19 16:01:25 2006 +0000 +++ b/run/b/bug_type_308_D.d Wed Jul 19 21:00:13 2006 +0000 @@ -10,7 +10,7 @@ struct S{ int i; - + static S foo(int x){ S s;