Mercurial > projects > dstress
changeset 1090:f4e98d870b57
pre DMD-0.163 review
line wrap: on
line diff
--- a/run/a/associative_array_19_A.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/a/associative_array_19_A.d Thu Jul 20 14:47:29 2006 +0000 @@ -1,6 +1,6 @@ // $HeadURL$ // $Date$ -// $Author +// $Author$ // @author@ Sebastian Beschke <s.beschke@gmx.de> // @date@ 2005-03-25
--- a/run/a/associative_array_19_B.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/a/associative_array_19_B.d Thu Jul 20 14:47:29 2006 +0000 @@ -1,6 +1,6 @@ // $HeadURL$ // $Date$ -// $Author +// $Author$ // @author@ Sebastian Beschke <s.beschke@gmx.de> // @date@ 2005-03-25
--- a/run/a/associative_array_19_C.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/a/associative_array_19_C.d Thu Jul 20 14:47:29 2006 +0000 @@ -1,6 +1,6 @@ // $HeadURL$ // $Date$ -// $Author +// $Author$ // @author@ Sebastian Beschke <s.beschke@gmx.de> // @date@ 2005-03-25
--- a/run/a/associative_array_19_D.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/a/associative_array_19_D.d Thu Jul 20 14:47:29 2006 +0000 @@ -1,6 +1,6 @@ // $HeadURL$ // $Date$ -// $Author +// $Author$ // @author@ Sebastian Beschke <s.beschke@gmx.de> // @date@ 2005-03-25
--- a/run/a/associative_array_19_E.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/a/associative_array_19_E.d Thu Jul 20 14:47:29 2006 +0000 @@ -1,6 +1,6 @@ // $HeadURL$ // $Date$ -// $Author +// $Author$ // @author@ Sebastian Beschke <s.beschke@gmx.de> // @date@ 2005-03-25
--- a/run/a/associative_array_19_F.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/a/associative_array_19_F.d Thu Jul 20 14:47:29 2006 +0000 @@ -1,6 +1,6 @@ // $HeadURL$ // $Date$ -// $Author +// $Author$ // @author@ Sebastian Beschke <s.beschke@gmx.de> // @date@ 2005-03-25
--- a/run/a/associative_array_19_G.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/a/associative_array_19_G.d Thu Jul 20 14:47:29 2006 +0000 @@ -1,6 +1,6 @@ // $HeadURL$ // $Date$ -// $Author +// $Author$ // @author@ Sebastian Beschke <s.beschke@gmx.de> // @date@ 2005-03-25
--- a/run/a/associative_array_19_H.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/a/associative_array_19_H.d Thu Jul 20 14:47:29 2006 +0000 @@ -1,6 +1,6 @@ // $HeadURL$ // $Date$ -// $Author +// $Author$ // @author@ Sebastian Beschke <s.beschke@gmx.de> // @date@ 2005-03-25
--- a/run/a/associative_array_19_I.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/a/associative_array_19_I.d Thu Jul 20 14:47:29 2006 +0000 @@ -1,6 +1,6 @@ // $HeadURL$ // $Date$ -// $Author +// $Author$ // @author@ Sebastian Beschke <s.beschke@gmx.de> // @date@ 2005-03-25
--- a/run/a/associative_array_19_J.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/a/associative_array_19_J.d Thu Jul 20 14:47:29 2006 +0000 @@ -1,6 +1,6 @@ // $HeadURL$ // $Date$ -// $Author +// $Author$ // @author@ Sebastian Beschke <s.beschke@gmx.de> // @date@ 2005-03-25
--- a/run/a/associative_array_19_K.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/a/associative_array_19_K.d Thu Jul 20 14:47:29 2006 +0000 @@ -1,6 +1,6 @@ // $HeadURL$ // $Date$ -// $Author +// $Author$ // @author@ Sebastian Beschke <s.beschke@gmx.de> // @date@ 2005-03-25
--- a/run/a/associative_array_19_L.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/a/associative_array_19_L.d Thu Jul 20 14:47:29 2006 +0000 @@ -1,6 +1,6 @@ // $HeadURL$ // $Date$ -// $Author +// $Author$ // @author@ Sebastian Beschke <s.beschke@gmx.de> // @date@ 2005-03-25
--- a/run/a/associative_array_19_M.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/a/associative_array_19_M.d Thu Jul 20 14:47:29 2006 +0000 @@ -1,6 +1,6 @@ // $HeadURL$ // $Date$ -// $Author +// $Author$ // @author@ Sebastian Beschke <s.beschke@gmx.de> // @date@ 2005-03-25
--- a/run/a/associative_array_19_N.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/a/associative_array_19_N.d Thu Jul 20 14:47:29 2006 +0000 @@ -1,6 +1,6 @@ // $HeadURL$ // $Date$ -// $Author +// $Author$ // @author@ Sebastian Beschke <s.beschke@gmx.de> // @date@ 2005-03-25
--- a/run/a/associative_array_19_O.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/a/associative_array_19_O.d Thu Jul 20 14:47:29 2006 +0000 @@ -1,6 +1,6 @@ // $HeadURL$ // $Date$ -// $Author +// $Author$ // @author@ Sebastian Beschke <s.beschke@gmx.de> // @date@ 2005-03-25
--- a/run/a/associative_array_19_P.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/a/associative_array_19_P.d Thu Jul 20 14:47:29 2006 +0000 @@ -1,6 +1,6 @@ // $HeadURL$ // $Date$ -// $Author +// $Author$ // @author@ Sebastian Beschke <s.beschke@gmx.de> // @date@ 2005-03-25
--- a/run/a/associative_array_19_Q.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/a/associative_array_19_Q.d Thu Jul 20 14:47:29 2006 +0000 @@ -1,6 +1,6 @@ // $HeadURL$ // $Date$ -// $Author +// $Author$ // @author@ Sebastian Beschke <s.beschke@gmx.de> // @date@ 2005-03-25
--- a/run/a/associative_array_19_R.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/a/associative_array_19_R.d Thu Jul 20 14:47:29 2006 +0000 @@ -1,6 +1,6 @@ // $HeadURL$ // $Date$ -// $Author +// $Author$ // @author@ Sebastian Beschke <s.beschke@gmx.de> // @date@ 2005-03-25
--- a/run/a/associative_array_19_S.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/a/associative_array_19_S.d Thu Jul 20 14:47:29 2006 +0000 @@ -1,6 +1,6 @@ // $HeadURL$ // $Date$ -// $Author +// $Author$ // @author@ Sebastian Beschke <s.beschke@gmx.de> // @date@ 2005-03-25
--- a/run/a/associative_array_19_T.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/a/associative_array_19_T.d Thu Jul 20 14:47:29 2006 +0000 @@ -1,6 +1,6 @@ // $HeadURL$ // $Date$ -// $Author +// $Author$ // @author@ Sebastian Beschke <s.beschke@gmx.de> // @date@ 2005-03-25
--- a/run/a/associative_array_19_U.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/a/associative_array_19_U.d Thu Jul 20 14:47:29 2006 +0000 @@ -1,6 +1,6 @@ // $HeadURL$ // $Date$ -// $Author +// $Author$ // @author@ Sebastian Beschke <s.beschke@gmx.de> // @date@ 2005-03-25
--- a/run/a/associative_array_19_V.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/a/associative_array_19_V.d Thu Jul 20 14:47:29 2006 +0000 @@ -1,6 +1,6 @@ // $HeadURL$ // $Date$ -// $Author +// $Author$ // @author@ Sebastian Beschke <s.beschke@gmx.de> // @date@ 2005-03-25
--- a/run/a/associative_array_19_W.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/a/associative_array_19_W.d Thu Jul 20 14:47:29 2006 +0000 @@ -1,6 +1,6 @@ // $HeadURL$ // $Date$ -// $Author +// $Author$ // @author@ Sebastian Beschke <s.beschke@gmx.de> // @date@ 2005-03-25
--- a/run/a/associative_array_19_X.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/a/associative_array_19_X.d Thu Jul 20 14:47:29 2006 +0000 @@ -1,6 +1,6 @@ // $HeadURL$ // $Date$ -// $Author +// $Author$ // @author@ Sebastian Beschke <s.beschke@gmx.de> // @date@ 2005-03-25
--- a/run/a/associative_array_19_Y.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/a/associative_array_19_Y.d Thu Jul 20 14:47:29 2006 +0000 @@ -1,6 +1,6 @@ // $HeadURL$ // $Date$ -// $Author +// $Author$ // @author@ Sebastian Beschke <s.beschke@gmx.de> // @date@ 2005-03-25
--- a/run/a/associative_array_19_Z.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/a/associative_array_19_Z.d Thu Jul 20 14:47:29 2006 +0000 @@ -1,6 +1,6 @@ // $HeadURL$ // $Date$ -// $Author +// $Author$ // @author@ Sebastian Beschke <s.beschke@gmx.de> // @date@ 2005-03-25
--- a/run/c/case_01.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/case_01.d Thu Jul 20 14:47:29 2006 +0000 @@ -21,6 +21,6 @@ } break; } - + return 0; -} \ No newline at end of file +}
--- a/run/c/cast_29_A.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/cast_29_A.d Thu Jul 20 14:47:29 2006 +0000 @@ -18,10 +18,10 @@ int main(){ Bar[] bars=new Bar[100]; Foo[] foos=bars; - + foreach(Foo f; foos){ return 0; } - + assert(0); -} \ No newline at end of file +}
--- a/run/c/cast_29_B.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/cast_29_B.d Thu Jul 20 14:47:29 2006 +0000 @@ -17,10 +17,10 @@ int main(){ Bar[] bars=new Bar[100]; - + foreach(Foo f; bars){ return 0; } - + assert(0); -} \ No newline at end of file +}
--- a/run/c/cast_30_A.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/cast_30_A.d Thu Jul 20 14:47:29 2006 +0000 @@ -12,7 +12,7 @@ int main(){ X four = cast(X) (4.0i + 0.4); - + assert(four.im == 4.0); assert(four.re == 0.4);
--- a/run/c/cast_30_B.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/cast_30_B.d Thu Jul 20 14:47:29 2006 +0000 @@ -12,7 +12,7 @@ int main(){ X four = cast(X) (4.0i + 0.4); - + assert(four.im == 4.0); assert(four.re == 0.4);
--- a/run/c/cast_30_C.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/cast_30_C.d Thu Jul 20 14:47:29 2006 +0000 @@ -12,7 +12,7 @@ int main(){ X four = cast(X) 4.0i; - + assert(four.im == 4.0); return 0;
--- a/run/c/cast_30_D.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/cast_30_D.d Thu Jul 20 14:47:29 2006 +0000 @@ -12,8 +12,10 @@ int main(){ X four = cast(X) 4.0i; - - assert(four.im == 4.0); + + if(four.im != 4.0){ + assert(0); + } return 0; }
--- a/run/c/cast_30_E.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/cast_30_E.d Thu Jul 20 14:47:29 2006 +0000 @@ -12,8 +12,10 @@ int main(){ X four = cast(X) 4.0; - - assert(cast(double)four == 4.0); + + if(cast(double)four != 4.0){ + assert(0); + } return 0; }
--- a/run/c/cast_30_F.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/cast_30_F.d Thu Jul 20 14:47:29 2006 +0000 @@ -12,8 +12,10 @@ int main(){ X four = cast(X) 4.0; - - assert(cast(double)four == 4.0); + + if(cast(double)four != 4.0){ + assert(0); + } return 0; }
--- a/run/c/cast_31_A.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/cast_31_A.d Thu Jul 20 14:47:29 2006 +0000 @@ -20,11 +20,11 @@ if(tapir[0] != antelope[0]){ assert(0); } - + if(tapir[1] != antelope[1]){ assert(0); } - + if(tapir[2] != antelope[2]){ assert(0); }
--- a/run/c/cast_31_B.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/cast_31_B.d Thu Jul 20 14:47:29 2006 +0000 @@ -20,11 +20,11 @@ if(tapir[0] != antelope[0]){ assert(0); } - + if(tapir[1] != antelope[1]){ assert(0); } - + if(tapir[2] != antelope[2]){ assert(0); }
--- a/run/c/catch_05_C.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/catch_05_C.d Thu Jul 20 14:47:29 2006 +0000 @@ -21,13 +21,17 @@ bb["zwei"] = 2; - assert(counter==0); - + if(counter != 0){ + assert(0); + } + foreach(char[] s, int i; bb){ dummy(); } - assert(counter==1); + if(counter != 1){ + assert(0); + } bb["a"] = 1; @@ -35,8 +39,12 @@ try{ throw new Error("foo"); }catch(Error e){ - assert(e); - assert(counter==1); + if(!e){ + assert(0); + } + if(counter != 1){ + assert(0); + } return 0; }catch{ assert(0);
--- a/run/c/catch_05_D.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/catch_05_D.d Thu Jul 20 14:47:29 2006 +0000 @@ -22,7 +22,7 @@ bb["zwei"] = 2; assert(counter==0); - + foreach(int i; bb){ dummy(); }
--- a/run/c/catch_05_E.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/catch_05_E.d Thu Jul 20 14:47:29 2006 +0000 @@ -20,7 +20,7 @@ int main(){ assert(counter==0); - + foreach(int i; bb){ dummy(); }
--- a/run/c/catch_05_F.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/catch_05_F.d Thu Jul 20 14:47:29 2006 +0000 @@ -20,7 +20,7 @@ int main(){ assert(counter==0); - + foreach(int i; bb){ dummy(i); }
--- a/run/c/cdouble_04_A.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/cdouble_04_A.d Thu Jul 20 14:47:29 2006 +0000 @@ -25,6 +25,6 @@ assert(data[0].re == 2.0); assert(data[1].im == 4.0); assert(data[1].re == 2.0); - + return 0; }
--- a/run/c/cdouble_04_B.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/cdouble_04_B.d Thu Jul 20 14:47:29 2006 +0000 @@ -25,6 +25,6 @@ assert(data[0].re == 2.0); assert(data[1].im == 4.0); assert(data[1].re == 2.0); - + return 0; }
--- a/run/c/cdouble_04_C.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/cdouble_04_C.d Thu Jul 20 14:47:29 2006 +0000 @@ -25,6 +25,6 @@ assert(data[0].re == 2.0); assert(data[1].im == 4.0); assert(data[1].re == 2.0); - + return 0; }
--- a/run/c/cfloat_02_A.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/cfloat_02_A.d Thu Jul 20 14:47:29 2006 +0000 @@ -24,12 +24,24 @@ sums[2] += prod; } - assert(sums[0].re==9.0f); - assert(sums[0].im==0.0f); - assert(sums[1].re==35.0f); - assert(sums[1].im==0.0f); - assert(sums[2].re==153.0f); - assert(sums[2].im==0.0f); + if(sums[0].re != 9.0f){ + assert(0); + } + if(sums[0].im != 0.0f){ + assert(0); + } + if(sums[1].re != 35.0f){ + assert(0); + } + if(sums[1].im != 0.0f){ + assert(0); + } + if(sums[2].re != 153.0f){ + assert(0); + } + if(sums[2].im != 0.0f){ + assert(0); + } return 0; }
--- a/run/c/cfloat_04_A.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/cfloat_04_A.d Thu Jul 20 14:47:29 2006 +0000 @@ -18,8 +18,12 @@ foo(d); - assert(d[0].im == 2.0f); - assert(d[0].re == -1.0f); + if(d[0].im != 2.0f){ + assert(0); + } + if(d[0].re != -1.0f){ + assert(0); + } return 0; }
--- a/run/c/cfloat_04_B.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/cfloat_04_B.d Thu Jul 20 14:47:29 2006 +0000 @@ -18,8 +18,12 @@ foo(d); - assert(d[0].im == 2.0f); - assert(d[0].re == 0.0f); + if(d[0].im != 2.0f){ + assert(0); + } + if(d[0].re != 0.0f){ + assert(0); + } return 0; }
--- a/run/c/cfloat_05_A.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/cfloat_05_A.d Thu Jul 20 14:47:29 2006 +0000 @@ -20,11 +20,21 @@ foo(data); - assert(data.length == 2); - assert(data[0].im == 1.0f); - assert(data[0].re == 2.0f); - assert(data[1].im == 4.0f); - assert(data[1].re == 2.0f); - + if(data.length != 2){ + assert(0); + } + if(data[0].im != 1.0f){ + assert(0); + } + if(data[0].re != 2.0f){ + assert(0); + } + if(data[1].im != 4.0f){ + assert(0); + } + if(data[1].re != 2.0f){ + assert(0); + } + return 0; }
--- a/run/c/cfloat_05_B.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/cfloat_05_B.d Thu Jul 20 14:47:29 2006 +0000 @@ -20,11 +20,21 @@ foo(data); - assert(data.length == 2); - assert(data[0].im == 1.0f); - assert(data[0].re == 2.0f); - assert(data[1].im == 4.0f); - assert(data[1].re == 2.0f); - + if(data.length != 2){ + assert(0); + } + if(data[0].im != 1.0f){ + assert(0); + } + if(data[0].re != 2.0f){ + assert(0); + } + if(data[1].im != 4.0f){ + assert(0); + } + if(data[1].re != 2.0f){ + assert(0); + } + return 0; }
--- a/run/c/cfloat_05_C.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/cfloat_05_C.d Thu Jul 20 14:47:29 2006 +0000 @@ -20,11 +20,21 @@ foo(data); - assert(data.length == 2); - assert(data[0].im == 1.0f); - assert(data[0].re == 2.0f); - assert(data[1].im == 4.0f); - assert(data[1].re == 2.0f); - + if(data.length != 2){ + assert(0); + } + if(data[0].im != 1.0f){ + assert(0); + } + if(data[0].re != 2.0f){ + assert(0); + } + if(data[1].im != 4.0f){ + assert(0); + } + if(data[1].re != 2.0f){ + assert(0); + } + return 0; }
--- a/run/c/char_07_A.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/char_07_A.d Thu Jul 20 14:47:29 2006 +0000 @@ -11,7 +11,9 @@ int main(){ char[] string = "\uDBC4\uDD11"; - assert(string.length == 4); + if(string.length != 4){ + assert(0); + } if(string[0] == 0xF0 && string[1] == 0x81 && string[2] == 0x84 && string[3] == 0x91){ return 0;
--- a/run/c/char_07_B.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/char_07_B.d Thu Jul 20 14:47:29 2006 +0000 @@ -11,7 +11,9 @@ int main(){ char[] string = "\uDBC4\uDD11"c; - assert(string.length == 4); + if(string.length != 4){ + assert(0); + } if(string[0] == 0xF0 && string[1] == 0x81 && string[2] == 0x84 && string[3] == 0x91){ return 0;
--- a/run/c/char_07_C.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/char_07_C.d Thu Jul 20 14:47:29 2006 +0000 @@ -11,7 +11,9 @@ int main(){ char[] string = "\uDBC4\uDD11"d; - assert(string.length == 4); + if(string.length != 4){ + assert(0); + } if(string[0] == 0xF0 && string[1] == 0x81 && string[2] == 0x84 && string[3] == 0x91){ return 0;
--- a/run/c/char_07_D.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/char_07_D.d Thu Jul 20 14:47:29 2006 +0000 @@ -11,7 +11,9 @@ int main(){ char[] string = "\uDBC4\uDD11"w; - assert(string.length == 4); + if(string.length != 4){ + assert(0); + } if(string[0] == 0xF0 && string[1] == 0x81 && string[2] == 0x84 && string[3] == 0x91){ return 0;
--- a/run/c/char_08_D.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/char_08_D.d Thu Jul 20 14:47:29 2006 +0000 @@ -12,6 +12,6 @@ const char[] x = "\u0081bcde"; static assert(x.sizeof == size_t.sizeof * 2); - + return 0; }
--- a/run/c/char_08_H.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/char_08_H.d Thu Jul 20 14:47:29 2006 +0000 @@ -10,6 +10,6 @@ int main(){ static assert("\u0081bcde"c.sizeof == 6); - + return 0; }
--- a/run/c/class_18_A.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/class_18_A.d Thu Jul 20 14:47:29 2006 +0000 @@ -10,7 +10,7 @@ class Foo { const int x = 1; - + static class Foo { const int x = 2; } @@ -21,9 +21,15 @@ int main(){ Foo.Bar a = new Foo.Bar; - assert(Foo.x == 1); - assert(Foo.Foo.x == 2); - assert(a.x == 1); - + if(Foo.x != 1){ + assert(0); + } + if(Foo.Foo.x != 2){ + assert(0); + } + if(a.x != 1){ + assert(0); + } + return 0; -} \ No newline at end of file +}
--- a/run/c/class_18_B.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/class_18_B.d Thu Jul 20 14:47:29 2006 +0000 @@ -10,12 +10,12 @@ class Foo { const int x = 1; - + static class Foo { const int x = 2; } - - alias .Foo gFoo; + + alias .Foo gFoo; static class Bar : gFoo{ } @@ -23,9 +23,15 @@ int main(){ Foo.Bar a = new Foo.Bar; - assert(Foo.x == 1); - assert(Foo.Foo.x == 2); - assert(a.x == 1); - + if(Foo.x != 1){ + assert(0); + } + if(Foo.Foo.x != 2){ + assert(0); + } + if(a.x != 1){ + assert(0); + } + return 0; -} \ No newline at end of file +}
--- a/run/c/class_20_C.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/class_20_C.d Thu Jul 20 14:47:29 2006 +0000 @@ -22,7 +22,7 @@ int dummy(){ return 2; } - + int bar(){ return 1; }
--- a/run/c/class_20_D.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/class_20_D.d Thu Jul 20 14:47:29 2006 +0000 @@ -28,7 +28,7 @@ int dummy(){ return 2; } - + int bar(){ return 1; }
--- a/run/c/class_20_E.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/class_20_E.d Thu Jul 20 14:47:29 2006 +0000 @@ -23,7 +23,7 @@ int dummy(){ return 2; } - + int bar(){ return 1; }
--- a/run/c/class_20_F.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/class_20_F.d Thu Jul 20 14:47:29 2006 +0000 @@ -23,7 +23,7 @@ int dummy(){ return 2; } - + int bar(){ return 1; }
--- a/run/c/class_20_G.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/class_20_G.d Thu Jul 20 14:47:29 2006 +0000 @@ -23,7 +23,7 @@ int dummy(){ return 2; } - + int bar(){ return 1; }
--- a/run/c/class_20_H.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/class_20_H.d Thu Jul 20 14:47:29 2006 +0000 @@ -23,7 +23,7 @@ int dummy(){ return 2; } - + int bar(){ return 1; }
--- a/run/c/class_20_I.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/class_20_I.d Thu Jul 20 14:47:29 2006 +0000 @@ -23,7 +23,7 @@ int dummy(){ return 2; } - + int bar(){ return 1; }
--- a/run/c/class_20_J.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/class_20_J.d Thu Jul 20 14:47:29 2006 +0000 @@ -26,7 +26,7 @@ int dummy(){ return 2; } - + int bar(){ return 1; } @@ -54,7 +54,7 @@ } A2 a2 = c; - + if(a2.bar() != 1){ assert(0); }
--- a/run/c/class_22_A.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/class_22_A.d Thu Jul 20 14:47:29 2006 +0000 @@ -31,17 +31,17 @@ if(a.x() != 1){ assert(0); } - - + + B b = new B(); - + if(b.x() != 2){ assert(0); } - + A c = new B(); - + if(c.x() != 2){ assert(0); }
--- a/run/c/class_22_B.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/class_22_B.d Thu Jul 20 14:47:29 2006 +0000 @@ -31,17 +31,17 @@ if(a.x() != 1){ assert(0); } - - + + B b = new B(); - + if(b.x() != 2){ assert(0); } - + A c = new B(); - + if(c.x() != 2){ assert(0); }
--- a/run/c/class_22_D.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/class_22_D.d Thu Jul 20 14:47:29 2006 +0000 @@ -31,17 +31,17 @@ if(a.x() != 1){ assert(0); } - - + + B b = new B(); - + if(b.x() != 2){ assert(0); } - + A c = new B(); - + if(c.x() != 2){ assert(0); }
--- a/run/c/comment_14.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/comment_14.d Thu Jul 20 14:47:29 2006 +0000 @@ -16,6 +16,8 @@ } int main(){ - assert(X==0); + if(X != 0){ + assert(0); + } return 0; -} \ No newline at end of file +}
--- a/run/c/const_16_B.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/const_16_B.d Thu Jul 20 14:47:29 2006 +0000 @@ -8,7 +8,7 @@ module dstress.run.c.const_16_B; -struct StructA{ +struct StructA{ int a; } @@ -16,7 +16,11 @@ const int x = s.a + 1; int main(){ - assert(s1.a == 1); - assert(x == 2); + if(s.a != 1){ + assert(0); + } + if(x != 2){ + assert(0); + } return 0; }
--- a/run/c/const_25_A.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/const_25_A.d Thu Jul 20 14:47:29 2006 +0000 @@ -9,7 +9,9 @@ } int main(){ - assert(typeid(typeof(C.x)).toString() == "double"); - + if(typeid(typeof(C.x)).toString() != "double"){ + assert(0); + } + return 0; }
--- a/run/c/const_25_B.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/const_25_B.d Thu Jul 20 14:47:29 2006 +0000 @@ -9,7 +9,9 @@ } int main(){ - assert(typeid(typeof(C.x)).toString() == "int"); - + if(typeid(typeof(C.x)).toString() != "int"){ + assert(0); + } + return 0; }
--- a/run/c/const_26_A.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/const_26_A.d Thu Jul 20 14:47:29 2006 +0000 @@ -13,7 +13,11 @@ } int main(){ - assert(a==3); - assert(b==2); + if(a != 3){ + assert(0); + } + if(b != 2){ + assert(0); + } return 0; }
--- a/run/c/const_26_B.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/const_26_B.d Thu Jul 20 14:47:29 2006 +0000 @@ -13,6 +13,8 @@ } int main(){ - assert(a==3); + if(a != 3){ + assert(0); + } return 0; }
--- a/run/c/const_27_A.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/const_27_A.d Thu Jul 20 14:47:29 2006 +0000 @@ -15,9 +15,15 @@ } int main(){ - assert(C.a == 1); - assert(C.b == 2); - assert(C.c == 6); + if(C.a != 1){ + assert(0); + } + if(C.b != 2){ + assert(0); + } + if(C.c != 6){ + assert(0); + } return 0; }
--- a/run/c/const_27_B.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/const_27_B.d Thu Jul 20 14:47:29 2006 +0000 @@ -15,9 +15,15 @@ } int main(){ - assert(C.a == 1); - assert(C.b == 2); - assert(C.c == 6); + if(C.a != 1){ + assert(0); + } + if(C.b != 2){ + assert(0); + } + if(C.c != 6){ + assert(0); + } return 0; }
--- a/run/c/const_27_C.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/const_27_C.d Thu Jul 20 14:47:29 2006 +0000 @@ -15,9 +15,15 @@ } int main(){ - assert(C.a == 1); - assert(C.b == 2); - assert(C.c == 6); + if(C.a != 1){ + assert(0); + } + if(C.b != 2){ + assert(0); + } + if(C.c != 6){ + assert(0); + } return 0; }
--- a/run/c/const_27_D.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/const_27_D.d Thu Jul 20 14:47:29 2006 +0000 @@ -15,9 +15,15 @@ } int main(){ - assert(C.a == 1); - assert(C.b == 2); - assert(C.c == 6); + if(C.a != 1){ + assert(0); + } + if(C.b != 2){ + assert(0); + } + if(C.c != 6){ + assert(0); + } return 0; }
--- a/run/c/const_27_E.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/const_27_E.d Thu Jul 20 14:47:29 2006 +0000 @@ -15,9 +15,15 @@ } int main(){ - assert(C.a == 1); - assert(C.b == 2); - assert(C.c == 6); + if(C.a != 1){ + assert(0); + } + if(C.b != 2){ + assert(0); + } + if(C.c != 6){ + assert(0); + } return 0; }
--- a/run/c/const_27_F.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/const_27_F.d Thu Jul 20 14:47:29 2006 +0000 @@ -15,9 +15,15 @@ } int main(){ - assert(C.a == 1); - assert(C.b == 2); - assert(C.c == 6); + if(C.a != 1){ + assert(0); + } + if(C.b != 2){ + assert(0); + } + if(C.c != 6){ + assert(0); + } return 0; }
--- a/run/c/const_29_B.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/const_29_B.d Thu Jul 20 14:47:29 2006 +0000 @@ -36,7 +36,7 @@ if(status != 0){ assert(0); } - + status++; this(); }
--- a/run/c/continue_04_A.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/continue_04_A.d Thu Jul 20 14:47:29 2006 +0000 @@ -20,7 +20,7 @@ int main(){ MyStruct foo; int sum; - + foreach(int i; foo){ sum += i; }
--- a/run/c/continue_04_B.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/continue_04_B.d Thu Jul 20 14:47:29 2006 +0000 @@ -20,7 +20,7 @@ int main(){ MyStruct foo; int sum; - + label: foreach(int i; foo){ sum += i;
--- a/run/c/continue_04_C.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/continue_04_C.d Thu Jul 20 14:47:29 2006 +0000 @@ -10,7 +10,7 @@ int main(){ int sum; - + foreach(char c; "\x00\x01\x02"){ sum += c; }
--- a/run/c/continue_04_D.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/continue_04_D.d Thu Jul 20 14:47:29 2006 +0000 @@ -10,7 +10,7 @@ int main(){ int sum; - + label: foreach(char c; "\x00\x01\x02"){ sum += c;
--- a/run/c/continue_04_E.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/continue_04_E.d Thu Jul 20 14:47:29 2006 +0000 @@ -20,7 +20,7 @@ int main(){ MyStruct foo; int sum; - + foreach(int i; foo){ sum += i; continue;
--- a/run/c/creal_26_A.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/creal_26_A.d Thu Jul 20 14:47:29 2006 +0000 @@ -24,12 +24,24 @@ sums[2] += prod; } - assert(sums[0].re == 9.0L); - assert(sums[0].im == 0.0L); - assert(sums[1].re == 35.0L); - assert(sums[1].im == 0.0L); - assert(sums[2].re == 153.0L); - assert(sums[2].im == 0.0L); + if(sums[0].re != 9.0L){ + assert(0); + } + if(sums[0].im != 0.0L){ + assert(0); + } + if(sums[1].re != 35.0L){ + assert(0); + } + if(sums[1].im != 0.0L){ + assert(0); + } + if(sums[2].re != 153.0L){ + assert(0); + } + if(sums[2].im != 0.0L){ + assert(0); + } return 0; }
--- a/run/c/creal_28_A.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/creal_28_A.d Thu Jul 20 14:47:29 2006 +0000 @@ -18,8 +18,12 @@ foo(d); - assert(d[0].im == 2.0L); - assert(d[0].re == -1.0L); + if(d[0].im != 2.0L){ + assert(0); + } + if(d[0].re != -1.0L){ + assert(0); + } return 0; }
--- a/run/c/creal_28_B.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/creal_28_B.d Thu Jul 20 14:47:29 2006 +0000 @@ -18,8 +18,12 @@ foo(d); - assert(d[0].im == 2.0L); - assert(d[0].re == 0.0L); + if(d[0].im != 2.0L){ + assert(0); + } + if(d[0].re != 0.0L){ + assert(0); + } return 0; }
--- a/run/c/creal_29_A.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/creal_29_A.d Thu Jul 20 14:47:29 2006 +0000 @@ -20,11 +20,21 @@ foo(data); - assert(data.length == 2); - assert(data[0].im == 1.0L); - assert(data[0].re == 2.0L); - assert(data[1].im == 4.0L); - assert(data[1].re == 2.0L); - + if(data.length != 2){ + assert(0); + } + if(data[0].im != 1.0L){ + assert(0); + } + if(data[0].re != 2.0L){ + assert(0); + } + if(data[1].im != 4.0L){ + assert(0); + } + if(data[1].re != 2.0L){ + assert(0); + } + return 0; }
--- a/run/c/creal_29_B.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/creal_29_B.d Thu Jul 20 14:47:29 2006 +0000 @@ -20,11 +20,21 @@ foo(data); - assert(data.length == 2); - assert(data[0].im == 1.0L); - assert(data[0].re == 2.0L); - assert(data[1].im == 4.0L); - assert(data[1].re == 2.0L); - + if(data.length != 2){ + assert(0); + } + if(data[0].im != 1.0L){ + assert(0); + } + if(data[0].re != 2.0L){ + assert(0); + } + if(data[1].im != 4.0L){ + assert(0); + } + if(data[1].re != 2.0L){ + assert(0); + } + return 0; }
--- a/run/c/creal_29_C.d Wed Jul 19 21:00:13 2006 +0000 +++ b/run/c/creal_29_C.d Thu Jul 20 14:47:29 2006 +0000 @@ -20,11 +20,21 @@ foo(data); - assert(data.length == 2); - assert(data[0].im == 1.0L); - assert(data[0].re == 2.0L); - assert(data[1].im == 4.0L); - assert(data[1].re == 2.0L); - + if(data.length != 2){ + assert(0); + } + if(data[0].im != 1.0L){ + assert(0); + } + if(data[0].re != 2.0L){ + assert(0); + } + if(data[1].im != 4.0L){ + assert(0); + } + if(data[1].re != 2.0L){ + assert(0); + } + return 0; }