Mercurial > projects > dstress
changeset 870:38ea1bb385b6
bit -> bool and __DSTRESS_TORTURE_BLOCK__ fixes
line wrap: on
line diff
--- a/nocompile/array_initialization_04.d Sat Feb 25 08:30:52 2006 +0000 +++ b/nocompile/array_initialization_04.d Sun Feb 26 17:45:46 2006 +0000 @@ -16,7 +16,7 @@ int main(){ for (int t=0; t<33; t++){ - test((bit[t]).sizeof); + test((bool[t]).sizeof); } return 0; }
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/b/bool_02.d Sun Feb 26 17:45:46 2006 +0000 @@ -0,0 +1,12 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// __DSTRESS_ELINE__ 10 + +module dstress.nocompile.bool_02; + +int main(){ + bool b = 2; + return 0; +}
--- a/nocompile/bit_02.d Sat Feb 25 08:30:52 2006 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -// $HeadURL$ -// $Date$ -// $Author$ - -// __DSTRESS_ELINE__ 10 - -module dstress.nocompile.bit_02; - -int main(){ - bit b = 2; - return 0; -}
--- a/nocompile/cast_01.d Sat Feb 25 08:30:52 2006 +0000 +++ b/nocompile/cast_01.d Sun Feb 26 17:45:46 2006 +0000 @@ -16,9 +16,9 @@ } int test(Enum e){ - bit[] b; - b = cast(bit[]) - (cast(bit*)e); + bool[] b; + b = cast(bool[]) + (cast(bool*)e); return 0; }
--- a/nocompile/cast_02.d Sat Feb 25 08:30:52 2006 +0000 +++ b/nocompile/cast_02.d Sun Feb 26 17:45:46 2006 +0000 @@ -16,9 +16,9 @@ } int main(){ - bit[] b; + bool[] b; Enum e; - b = cast(bit[]) - (cast(bit*)e); + b = cast(bool[]) + (cast(bool*)e); return 0; }
--- a/nocompile/e/ExpressionStatement_08_F.d Sat Feb 25 08:30:52 2006 +0000 +++ b/nocompile/e/ExpressionStatement_08_F.d Sun Feb 26 17:45:46 2006 +0000 @@ -6,7 +6,7 @@ // @date@ 2005-12-12 // @uri@ news:dnjnqe$16sv$1@digitaldaemon.com -// __DSTRESS_ELINE__ 15 +// __DSTRESS_ELINE__ 14 module dstress.nocompile.e.ExpressionsStatement_08_F;
--- a/nocompile/enum_31_A.d Sat Feb 25 08:30:52 2006 +0000 +++ b/nocompile/enum_31_A.d Sun Feb 26 17:45:46 2006 +0000 @@ -6,6 +6,6 @@ module dstress.nocompile.enum_31_A; -enum Enum : bit { +enum Enum : bool { A = 2 }
--- a/nocompile/enum_31_B.d Sat Feb 25 08:30:52 2006 +0000 +++ b/nocompile/enum_31_B.d Sun Feb 26 17:45:46 2006 +0000 @@ -6,6 +6,6 @@ module dstress.nocompile.enum_31_B; -enum Enum : bit { +enum Enum : bool { A = -1 }
--- a/nocompile/inline_07.d Sat Feb 25 08:30:52 2006 +0000 +++ b/nocompile/inline_07.d Sun Feb 26 17:45:46 2006 +0000 @@ -7,7 +7,8 @@ // @uri@ news:cv77ei$27mv$3@digitaldaemon.com // @url@ nntp://news.digitalmars.com/digitalmars.D.bugs/3017 -// __DSTRESS_ELINE__ 21 +// __DSTRESS_TORTURE_BLOCK__ -release +// __DSTRESS_ELINE__ 22 module dstress.nocompile.inline_07; @@ -20,4 +21,4 @@ int main(){ assert(MyStruct.bug()==3); return 0; -} \ No newline at end of file +}
--- a/nocompile/l/label_04_E.d Sat Feb 25 08:30:52 2006 +0000 +++ b/nocompile/l/label_04_E.d Sun Feb 26 17:45:46 2006 +0000 @@ -6,6 +6,6 @@ module dstress.nocompile.l.label_04_E; -bit: +bool: int dummy;
--- a/nocompile/o/cast_28.d Sat Feb 25 08:30:52 2006 +0000 +++ b/nocompile/o/cast_28.d Sun Feb 26 17:45:46 2006 +0000 @@ -10,7 +10,7 @@ void main(){ char[] data; - bit* pData; + bool* pData; - pData = &cast(bit*) data; -} \ No newline at end of file + pData = &cast(bool*) data; +}
--- a/norun/i/in_out_body_10_B.d Sat Feb 25 08:30:52 2006 +0000 +++ b/norun/i/in_out_body_10_B.d Sun Feb 26 17:45:46 2006 +0000 @@ -6,7 +6,8 @@ // @date@ 2005-12-12 // @uri@ news:dnjnqe$16sv$1@digitaldaemon.com -// __DSTRESS_ELINE__ 27 +// __DSTRESS_TORTURE_BLOCK__ -release +// __DSTRESS_ELINE__ 28 module dstress.norun.i.in_out_body_10_B;
--- a/norun/i/in_out_body_10_C.d Sat Feb 25 08:30:52 2006 +0000 +++ b/norun/i/in_out_body_10_C.d Sun Feb 26 17:45:46 2006 +0000 @@ -6,7 +6,8 @@ // @date@ 2005-12-12 // @uri@ news:dnjnqe$16sv$1@digitaldaemon.com -// __DSTRESS_ELINE__ 16 +// __DSTRESS_TORTURE_BLOCK__ -release +// __DSTRESS_ELINE__ 17 module dstress.norun.i.in_out_body_10_C;
--- a/norun/slice_06.d Sat Feb 25 08:30:52 2006 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -// $HeadURL$ -// $Date$ -// $Author$ - -// __DSTRESS_TORTURE_BLOCK__ -release -// __DSTRESS_ELINE__ 22 - -module dstress.nocompile.slice_06; - -int main(){ - bit[] a; - a.length=2; - a[] = true; - assert(a[0]); - assert(a[1]); - - bit[] b; - b.length=2; - assert(!b[0]); - assert(!b[1]); - - b[1..2] = a[0..1]; - assert(!b[0]); - assert(b[1]); - - return 0; -}
--- a/norun/slice_08.d Sat Feb 25 08:30:52 2006 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,27 +0,0 @@ -// $HeadURL$ -// $Date$ -// $Author$ - -// __DSTRESS_TORTURE_BLOCK__ -release -// __DSTRESS_ELINE__ 22 - -module dstress.nocompile.slice_08; - -int main(){ - bit[] a; - a.length=2; - a[] = true; - assert(a[0]); - assert(a[1]); - - bit[] b; - b.length=2; - assert(!b[0]); - assert(!b[1]); - - b[0..1] = a[1..2]; - assert(b[0]); - assert(!b[1]); - - return 0; -}
--- a/run/a/array_initialization_17_B.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/a/array_initialization_17_B.d Sun Feb 26 17:45:46 2006 +0000 @@ -14,7 +14,7 @@ 4: 4.0f ]; -bit equal(float a, float b){ +bool equal(float a, float b){ byte* aa = cast(byte*) &a; byte* bb = cast(byte*) &b;
--- a/run/a/array_initialization_17_C.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/a/array_initialization_17_C.d Sun Feb 26 17:45:46 2006 +0000 @@ -14,7 +14,7 @@ 4: 4.0f ]; -bit equal(cfloat a, cfloat b){ +bool equal(cfloat a, cfloat b){ byte* aa = cast(byte*) &a; byte* bb = cast(byte*) &b;
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/b/bool_01.d Sun Feb 26 17:45:46 2006 +0000 @@ -0,0 +1,26 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +module dstress.run.bool_01; + +int main(){ + bool a; + assert(a.max == 1); + assert(a.min == 0); + assert(a.init == 0); + + assert(a.sizeof == typeid( bool ).tsize()); + + a = true; + assert( a == 1); + bool b = 1; + assert( b == 1); + + bool c = false; + assert( c == 0); + bool d = 0; + assert( d == 0); + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/b/bool_03.d Sun Feb 26 17:45:46 2006 +0000 @@ -0,0 +1,92 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +module dstress.run.bool_03; + +int main(){ + bool a; + bool b; + bool c; + + a = false; b = !a; + assert( a == false ); + assert( b == true ); + a = true; b = !a; + assert( a == true ); + assert( b == false ); + + // AndAnd + a=true; b=true; c=a&&b; + assert( a == true ); + assert( b == true ); + assert( c == true ); + a=true; b=false; c=a&&b; + assert( a == true ); + assert( b == false ); + assert( c == false ); + a=false; b=true; c=a&&b; + assert( a == false ); + assert( b == true ); + assert( c == false ); + a=false; b=false; c=a&&b; + assert( a == false ); + assert( b == false ); + assert( c == false ); + + // OrOr + a=true; b=true; c=a||b; + assert( a == true ); + assert( b == true ), + assert( c == true ); + a=true; b=false; c=a||b; + assert( a == true ); + assert( b == false ); + assert( c == true ); + a=false; b=true; c=a||b; + assert( a == false ); + assert( b == true ); + assert( c == true ); + a=false; b=false; c=a||b; + assert( a == false ); + assert( b == false ); + assert( c == false ); + + // Equality Expression ("==") + a=true; b=true; c= a==b; + assert( a == true ); + assert( b == true ); + assert( c == true ); + a=true; b=false; c= a==b; + assert( a == true ); + assert( b == false ); + assert( c == false ); + a=false; b=true; c= a==b; + assert( a == false ); + assert( b == true ); + assert( c == false ); + a=false; b=false; c= a==b; + assert( a == false ); + assert( b == false ); + assert( c == true ); + + // Inequality Expression ("!=") + a=true; b=true; c= a!=b; + assert( a == true ); + assert( b == true ); + assert( c == false ); + a=true; b=false; c= a!=b; + assert( a == true ); + assert( b == false ); + assert( c == true ); + a=false; b=true; c= a!=b; + assert( a == false ); + assert( b == true ); + assert( c == true ); + a=false; b=false; c= a!=b; + assert( a == false ); + assert( b == false ); + assert( c == false ); + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/b/bool_04.d Sun Feb 26 17:45:46 2006 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Carlos Santander B. <carlos8294@msn.com> +// @date@ 2004-08-20 +// @uri@ news:cg41gm$2u2d$1@digitaldaemon.com + +module dstress.run.bool_04; + +struct MyStruct{ + bool check; +} + +int main(){ + MyStruct s; + s.check = 0 != 0; + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/b/bool_05.d Sun Feb 26 17:45:46 2006 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Carlos Santander B. <carlos8294@msn.com> +// @date@ 2004-08-20 +// @uri@ news:cg41gm$2u2d$1@digitaldaemon.com + +module dstress.run.bool_05; + +class MyClass{ + bool check; +} + +int main(){ + MyClass c = new MyClass(); + c.check = 0 != 0; + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/b/bool_06.d Sun Feb 26 17:45:46 2006 +0000 @@ -0,0 +1,19 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Carlos Santander B. <carlos8294@msn.com> +// @date@ 2004-08-20 +// @uri@ news:cg41gm$2u2d$1@digitaldaemon.com + +module dstress.run.bool_06; + +union MyUnion{ + bool check; +} + +int main(){ + MyUnion u; + u.check = 0 != 0; + return 0; +}
--- a/run/b/bug_cgcs_353_R2.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/b/bug_cgcs_353_R2.d Sun Feb 26 17:45:46 2006 +0000 @@ -10,7 +10,7 @@ module dstress.run.b.bug_cgcs_353_R2; int main(){ - bit[] arr; + bool[] arr; arr.length=1; arr[0]=false;
--- a/run/b/bug_cod2_4211_V.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/b/bug_cod2_4211_V.d Sun Feb 26 17:45:46 2006 +0000 @@ -10,7 +10,7 @@ module dstress.run.b.bug_cod2_4211_V; struct Foo{ - bit a, b, c; + bool a, b, c; } int bar(Foo e){
--- a/run/bit_01.d Sat Feb 25 08:30:52 2006 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -// $HeadURL$ -// $Date$ -// $Author$ - -module dstress.run.bit_01; - -int main(){ - bit a; - assert(a.max == 1); - assert(a.min == 0); - assert(a.init == 0); - - assert(a.sizeof == typeid( bit ).tsize()); - - a = true; - assert( a == 1); - bit b = 1; - assert( b == 1); - - bit c = false; - assert( c == 0); - bit d = 0; - assert( d == 0); - - return 0; -}
--- a/run/bit_03.d Sat Feb 25 08:30:52 2006 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,92 +0,0 @@ -// $HeadURL$ -// $Date$ -// $Author$ - -module dstress.run.bit_03; - -int main(){ - bit a; - bit b; - bit c; - - a = false; b = !a; - assert( a == false ); - assert( b == true ); - a = true; b = !a; - assert( a == true ); - assert( b == false ); - - // AndAnd - a=true; b=true; c=a&&b; - assert( a == true ); - assert( b == true ); - assert( c == true ); - a=true; b=false; c=a&&b; - assert( a == true ); - assert( b == false ); - assert( c == false ); - a=false; b=true; c=a&&b; - assert( a == false ); - assert( b == true ); - assert( c == false ); - a=false; b=false; c=a&&b; - assert( a == false ); - assert( b == false ); - assert( c == false ); - - // OrOr - a=true; b=true; c=a||b; - assert( a == true ); - assert( b == true ), - assert( c == true ); - a=true; b=false; c=a||b; - assert( a == true ); - assert( b == false ); - assert( c == true ); - a=false; b=true; c=a||b; - assert( a == false ); - assert( b == true ); - assert( c == true ); - a=false; b=false; c=a||b; - assert( a == false ); - assert( b == false ); - assert( c == false ); - - // Equality Expression ("==") - a=true; b=true; c= a==b; - assert( a == true ); - assert( b == true ); - assert( c == true ); - a=true; b=false; c= a==b; - assert( a == true ); - assert( b == false ); - assert( c == false ); - a=false; b=true; c= a==b; - assert( a == false ); - assert( b == true ); - assert( c == false ); - a=false; b=false; c= a==b; - assert( a == false ); - assert( b == false ); - assert( c == true ); - - // Inequality Expression ("!=") - a=true; b=true; c= a!=b; - assert( a == true ); - assert( b == true ); - assert( c == false ); - a=true; b=false; c= a!=b; - assert( a == true ); - assert( b == false ); - assert( c == true ); - a=false; b=true; c= a!=b; - assert( a == false ); - assert( b == true ); - assert( c == true ); - a=false; b=false; c= a!=b; - assert( a == false ); - assert( b == false ); - assert( c == false ); - - return 0; -}
--- a/run/bit_04.d Sat Feb 25 08:30:52 2006 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -// $HeadURL$ -// $Date$ -// $Author$ - -// @author@ Carlos Santander B. <carlos8294@msn.com> -// @date@ 2004-08-20 -// @uri@ news:cg41gm$2u2d$1@digitaldaemon.com - -module dstress.run.bit_04; - -struct MyStruct{ - bit check; -} - -int main(){ - MyStruct s; - s.check = 0 != 0; - return 0; -}
--- a/run/bit_05.d Sat Feb 25 08:30:52 2006 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -// $HeadURL$ -// $Date$ -// $Author$ - -// @author@ Carlos Santander B. <carlos8294@msn.com> -// @date@ 2004-08-20 -// @uri@ news:cg41gm$2u2d$1@digitaldaemon.com - -module dstress.run.bit_05; - -class MyClass{ - bit check; -} - -int main(){ - MyClass c = new MyClass(); - c.check = 0 != 0; - return 0; -}
--- a/run/bit_06.d Sat Feb 25 08:30:52 2006 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,19 +0,0 @@ -// $HeadURL$ -// $Date$ -// $Author$ - -// @author@ Carlos Santander B. <carlos8294@msn.com> -// @date@ 2004-08-20 -// @uri@ news:cg41gm$2u2d$1@digitaldaemon.com - -module dstress.run.bit_06; - -union MyUnion{ - bit check; -} - -int main(){ - MyUnion u; - u.check = 0 != 0; - return 0; -}
--- a/run/bug_20050405_01.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/bug_20050405_01.d Sun Feb 26 17:45:46 2006 +0000 @@ -9,7 +9,7 @@ module dstress.run.bug_20050405_01; int main(){ - bit[] a, b; + bool[] a, b; a.length = 256; b.length = 256; b[] = a;
--- a/run/bug_20050405_02.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/bug_20050405_02.d Sun Feb 26 17:45:46 2006 +0000 @@ -9,7 +9,7 @@ module dstress.run.bug_20050405_02; int main(){ - bit[] a, b; + bool[] a, b; a.length = 257; b.length = 257; b[] = a;
--- a/run/bug_20050405_04.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/bug_20050405_04.d Sun Feb 26 17:45:46 2006 +0000 @@ -9,7 +9,7 @@ module dstress.run.bug_20050405_04; int main(){ - bit[] a, b; + bool[] a, b; a.length = 257; b.length = 257; b = a;
--- a/run/bug_cgcs_353_R.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/bug_cgcs_353_R.d Sun Feb 26 17:45:46 2006 +0000 @@ -9,22 +9,22 @@ module dstress.run.bug_cgcs_353_R; -bit[1] a; -bit[1] b; +bool[1] a; +bool[1] b; -bit[] concat() { +bool[] concat() { return a~b; } int main(){ - a[]=0; - b[]=1; + a[] = false; + b[] = true; - bit[] arr=concat(); + bool[] arr=concat(); assert(arr.length==2); - assert(arr[0]==0); - assert(arr[1]==1); + assert(!arr[0]); + assert(arr[1]); return 0; }
--- a/run/bug_cod2_4211_R.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/bug_cod2_4211_R.d Sun Feb 26 17:45:46 2006 +0000 @@ -8,22 +8,22 @@ module dstress.run.bug_cod2_4211_R; -bit[1] a; -bit[1] b; +bool[1] a; +bool[1] b; -bit[] concat() { +bool[] concat() { return a~b; } int main(){ - a[]=0; - b[]=1; + a[]=false; + b[]=true; - bit[] arr=concat(); + bool[] arr=concat(); assert(arr.length==2); - assert(arr[0]==0); - assert(arr[1]==1); + assert(!arr[0]); + assert(arr[1]); return 0; }
--- a/run/default_argument_03.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/default_argument_03.d Sun Feb 26 17:45:46 2006 +0000 @@ -4,13 +4,13 @@ module dstress.run.default_argument_03; -int test(bit b=1){ +int test(bool b=1){ return b; } int main(){ assert(test()==1); - assert(test(1)==1); - assert(test(0)==0); + assert(test(true)==1); + assert(test(false)==0); return 0; }
--- a/run/delegate_01.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/delegate_01.d Sun Feb 26 17:45:46 2006 +0000 @@ -17,7 +17,7 @@ } int main(){ - List!(bit) list; + List!(bool) list; return 0; }
--- a/run/dup_02.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/dup_02.d Sun Feb 26 17:45:46 2006 +0000 @@ -5,13 +5,13 @@ module dstress.run.dup_02; int main(){ - bit a[]; + bool a[]; a.length=3; a[0]=false; a[1]=false; a[2]=true; - bit[] b=a.dup; + bool[] b=a.dup; a[1]=true; b[0]=true;
--- a/run/i/in_out_body_10_A.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/i/in_out_body_10_A.d Sun Feb 26 17:45:46 2006 +0000 @@ -6,6 +6,8 @@ // @date@ 2005-12-12 // @uri@ news:dnjnqe$16sv$1@digitaldaemon.com +// __DSTRESS_TORTURE_BLOCK__ -release + module dstress.run.i.in_out_body_10_A; int a;
--- a/run/i/in_out_body_11_E.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/i/in_out_body_11_E.d Sun Feb 26 17:45:46 2006 +0000 @@ -6,6 +6,8 @@ // @date@ 2005-12-12 // @uri@ news:dnjnqe$16sv$1@digitaldaemon.com +// __DSTRESS_TORTURE_BLOCK__ -release + module dstress.run.i.in_out_body_11_E; int inBase;
--- a/run/i/in_out_body_11_F.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/i/in_out_body_11_F.d Sun Feb 26 17:45:46 2006 +0000 @@ -6,6 +6,8 @@ // @date@ 2005-12-12 // @uri@ news:dnjnqe$16sv$1@digitaldaemon.com +// __DSTRESS_TORTURE_BLOCK__ -release + module dstress.run.i.in_out_body_11_F; int inBase;
--- a/run/i/in_out_body_11_G.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/i/in_out_body_11_G.d Sun Feb 26 17:45:46 2006 +0000 @@ -6,6 +6,8 @@ // @date@ 2005-12-12 // @uri@ news:dnjnqe$16sv$1@digitaldaemon.com +// __DSTRESS_TORTURE_BLOCK__ -release + module dstress.run.i.in_out_body_11_G; int inDerived;
--- a/run/i/in_out_body_11_H.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/i/in_out_body_11_H.d Sun Feb 26 17:45:46 2006 +0000 @@ -6,6 +6,8 @@ // @date@ 2005-12-12 // @uri@ news:dnjnqe$16sv$1@digitaldaemon.com +// __DSTRESS_TORTURE_BLOCK__ -release + module dstress.run.i.in_out_body_11_H; int inDerived;
--- a/run/m/mangleof_02_A.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/m/mangleof_02_A.d Sun Feb 26 17:45:46 2006 +0000 @@ -5,8 +5,8 @@ module dstress.run.m.mangleof_02_A; int main(){ - char[] m = (bit).mangleof; - if(m == "b"){ + char[] m = (bool).mangleof; + if(m == "x"){ return 0; } }
--- a/run/m/mangleof_02_B.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/m/mangleof_02_B.d Sun Feb 26 17:45:46 2006 +0000 @@ -5,8 +5,8 @@ module dstress.run.m.mangleof_02_B; int main(){ - char[] m = (bit[]).mangleof; - if(m == "Ab"){ + char[] m = (bool[]).mangleof; + if(m == "Ax"){ return 0; } }
--- a/run/m/mangleof_02_C.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/m/mangleof_02_C.d Sun Feb 26 17:45:46 2006 +0000 @@ -5,8 +5,8 @@ module dstress.run.m.mangleof_02_C; int main(){ - char[] m = (bit*).mangleof; - if(m == "Pb"){ + char[] m = (bool*).mangleof; + if(m == "Px"){ return 0; } }
--- a/run/m/mangleof_02_D.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/m/mangleof_02_D.d Sun Feb 26 17:45:46 2006 +0000 @@ -5,8 +5,8 @@ module dstress.run.m.mangleof_02_D; int main(){ - char[] m = (bit*[]).mangleof; - if(m == "APb"){ + char[] m = (bool*[]).mangleof; + if(m == "APx"){ return 0; } }
--- a/run/m/mangleof_02_E.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/m/mangleof_02_E.d Sun Feb 26 17:45:46 2006 +0000 @@ -5,8 +5,8 @@ module dstress.run.m.mangleof_02_E; int main(){ - char[] m = (bit[]*).mangleof; - if(m == "PAb"){ + char[] m = (bool[]*).mangleof; + if(m == "PAx"){ return 0; } }
--- a/run/m/mangleof_02_F.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/m/mangleof_02_F.d Sun Feb 26 17:45:46 2006 +0000 @@ -5,9 +5,9 @@ module dstress.run.m.mangleof_02_F; int main(){ - bit[2] t; + bool[2] t; char[] m = (typeof(t)).mangleof; - if(m == "G2b"){ + if(m == "G2x"){ return 0; } }
--- a/run/memory_management_03.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/memory_management_03.d Sun Feb 26 17:45:46 2006 +0000 @@ -4,12 +4,12 @@ module dstress.run.memory_management_03; -void test(bit[] arr){ +void test(bool[] arr){ arr[1] = !arr[1]; } int main(){ - bit[] c; + bool[] c; c.length=3; c[0]=true; c[1]=false;
--- a/run/o/opAndAssign_01_A.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/o/opAndAssign_01_A.d Sun Feb 26 17:45:46 2006 +0000 @@ -10,7 +10,7 @@ module dstress.run.o.opAndAssign_01_A; int main(){ - bit[1] arr; + bool[1] arr; arr[0] &= false; assert(!arr[0]);
--- a/run/o/opCat_15_A.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/o/opCat_15_A.d Sun Feb 26 17:45:46 2006 +0000 @@ -9,8 +9,8 @@ module dstress.run.o.opCat_15_A; int main(){ - bit x=true; - bit[] arr; + bool x=true; + bool[] arr; arr = arr ~ x; assert(arr.length==1);
--- a/run/o/opCmp_07_A.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/o/opCmp_07_A.d Sun Feb 26 17:45:46 2006 +0000 @@ -9,12 +9,12 @@ module dstress.run.o.opCmp_07_A; int main(){ - bit[9] a; + bool[9] a; a[8] = true; - bit[9] b; + bool[9] b; b[8] = false; assert(a>b); return 0; -} \ No newline at end of file +}
--- a/run/o/opCmp_07_B.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/o/opCmp_07_B.d Sun Feb 26 17:45:46 2006 +0000 @@ -9,12 +9,12 @@ module dstress.run.o.opCmp_07_B; int main(){ - bit[9] a; + bool[9] a; a[8] = false; - bit[9] b; + bool[9] b; b[8] = true; assert(a<b); return 0; -} \ No newline at end of file +}
--- a/run/o/opOrAssign_01_A.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/o/opOrAssign_01_A.d Sun Feb 26 17:45:46 2006 +0000 @@ -10,7 +10,7 @@ module dstress.run.o.opOrAssign_01_A; int main(){ - bit[1] arr; + bool[1] arr; assert(!arr[0]); arr[0]|=true;
--- a/run/o/opSlice_01_A.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/o/opSlice_01_A.d Sun Feb 26 17:45:46 2006 +0000 @@ -10,7 +10,7 @@ module dstress.run.o.opSlice_01_A; int main(){ - bit arr[4][2]; + bool arr[4][2]; arr[0][1]=true;
--- a/run/o/opXorAssign_01_A.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/o/opXorAssign_01_A.d Sun Feb 26 17:45:46 2006 +0000 @@ -10,7 +10,7 @@ module dstress.run.o.opXorAssign_01_A; int main(){ - bit[1] arr; + bool[1] arr; arr[0] ^= false; assert(!arr[0]);
--- a/run/opCatAssign_04.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/opCatAssign_04.d Sun Feb 26 17:45:46 2006 +0000 @@ -5,14 +5,14 @@ module dstress.run.opCatAssign_04; int main(){ - bit[] a; + bool[] a; a.length=3; a[0]=true; a[1]=true; a[2]=true; assert(a.length==3); - bit[] b; + bool[] b; b.length=2; b[0]=false; b[1]=false;
--- a/run/opCatAssign_05.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/opCatAssign_05.d Sun Feb 26 17:45:46 2006 +0000 @@ -5,7 +5,7 @@ module dstress.run.opCatAssign_05; int main(){ - bit[] a; + bool[] a; a.length=3; a[0]=true; a[1]=false;
--- a/run/opCatAssign_09.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/opCatAssign_09.d Sun Feb 26 17:45:46 2006 +0000 @@ -10,8 +10,8 @@ int main(){ - bit[] a; - bit[] b; + bool[] a; + bool[] b; a.length = 8; a[0] = 0; @@ -81,4 +81,4 @@ assert(b[15]==0); return 0; -} \ No newline at end of file +}
--- a/run/opCatAssign_14.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/opCatAssign_14.d Sun Feb 26 17:45:46 2006 +0000 @@ -9,7 +9,7 @@ module dstress.run.opCatAssign_13; int main(){ - static bit[] a = [true, true, false, true, false]; + static bool[] a = [true, true, false, true, false]; assert(a.length==5); assert(a[0]==true); assert(a[1]==true); @@ -17,7 +17,7 @@ assert(a[3]==true); assert(a[4]==false); - bit[] b = a.dup; + bool[] b = a.dup; assert(a.length==5); assert(a[0]==true); assert(a[1]==true);
--- a/run/opCat_04.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/opCat_04.d Sun Feb 26 17:45:46 2006 +0000 @@ -9,46 +9,46 @@ module dstress.run.opCat_04; int main(){ - static bit[] a = [1, 1, 0, 1, 0]; + static bool[] a = [true, true, false, true, false]; assert(a.length==5); - assert(a[0]==1); - assert(a[1]==1); - assert(a[2]==0); - assert(a[3]==1); - assert(a[4]==0); + assert(a[0]==true); + assert(a[1]==true); + assert(a[2]==false); + assert(a[3]==true); + assert(a[4]==false); - static bit[] b = [1, 0, 0, 1]; + static bool[] b = [true, false, false, true]; assert(b.length==4); - assert(b[0]==1); - assert(b[1]==0); - assert(b[2]==0); - assert(b[3]==1); + assert(b[0]==true); + assert(b[1]==false); + assert(b[2]==false); + assert(b[3]==true); - bit[] c = a~b; + bool[] c = a~b; assert(a.length==5); - assert(a[0]==1); - assert(a[1]==1); - assert(a[2]==0); - assert(a[3]==1); - assert(a[4]==0); + assert(a[0]==true); + assert(a[1]==true); + assert(a[2]==false); + assert(a[3]==true); + assert(a[4]==false); assert(b.length==4); - assert(b[0]==1); - assert(b[1]==0); - assert(b[2]==0); - assert(b[3]==1); + assert(b[0]==true); + assert(b[1]==false); + assert(b[2]==false); + assert(b[3]==true); assert(c.length==9); - assert(c[0]==1); - assert(c[1]==1); - assert(c[2]==0); - assert(c[3]==1); - assert(c[4]==0); - assert(c[5]==1); - assert(c[6]==0); - assert(c[7]==0); - assert(c[8]==1); + assert(c[0]==true); + assert(c[1]==true); + assert(c[2]==false); + assert(c[3]==true); + assert(c[4]==false); + assert(c[5]==true); + assert(c[6]==false); + assert(c[7]==false); + assert(c[8]==true); return 0; }
--- a/run/opCat_05.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/opCat_05.d Sun Feb 26 17:45:46 2006 +0000 @@ -9,7 +9,7 @@ module dstress.run.opCat_05; int main(){ - static bit[] a = [true, true, false, true, false]; + static bool[] a = [true, true, false, true, false]; assert(a.length==5); assert(a[0]==true); assert(a[1]==true); @@ -17,7 +17,7 @@ assert(a[3]==true); assert(a[4]==false); - bit[] b = a~true; + bool[] b = a~true; assert(a.length==5); assert(a[0]==true);
--- a/run/opCat_06.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/opCat_06.d Sun Feb 26 17:45:46 2006 +0000 @@ -9,7 +9,7 @@ module dstress.run.opCat_06; int main(){ - static bit[] a = [true, true, false, true, false]; + static bool[] a = [true, true, false, true, false]; assert(a.length==5); assert(a[0]==true); assert(a[1]==true); @@ -17,7 +17,7 @@ assert(a[3]==true); assert(a[4]==false); - bit[] b = a~false; + bool[] b = a~false; assert(a.length==5); assert(a[0]==true);
--- a/run/reverse_01.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/reverse_01.d Sun Feb 26 17:45:46 2006 +0000 @@ -5,13 +5,13 @@ module dstress.run.reverse_01; int main(){ - bit a[]; + bool a[]; a.length=3; a[0]=true; a[1]=false; a[2]=false; - bit[] b=a.reverse; + bool[] b=a.reverse; assert(a.length==3); assert(!a[0]); assert(!a[1]);
--- a/run/reverse_02.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/reverse_02.d Sun Feb 26 17:45:46 2006 +0000 @@ -5,12 +5,12 @@ module dstress.run.reverse_02; int main(){ - bit a[3]; + bool a[3]; a[0]=true; a[1]=false; a[2]=false; - bit[] b=a.reverse; + bool[] b=a.reverse; assert(b.length==3); assert(!b[0]); assert(!b[1]);
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/s/slice_06.d Sun Feb 26 17:45:46 2006 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +module dstress.run.s.slice_06; + +int main(){ + bool[] a; + a.length=2; + a[] = true; + assert(a[0]); + assert(a[1]); + + bool[] b; + b.length=2; + assert(!b[0]); + assert(!b[1]); + + b[1..2] = a[0..1]; + assert(!b[0]); + assert(b[1]); + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/s/slice_08.d Sun Feb 26 17:45:46 2006 +0000 @@ -0,0 +1,24 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +module dstress.run.s.slice_08; + +int main(){ + bool[] a; + a.length=2; + a[] = true; + assert(a[0]); + assert(a[1]); + + bool[] b; + b.length=2; + assert(!b[0]); + assert(!b[1]); + + b[0..1] = a[1..2]; + assert(b[0]); + assert(!b[1]); + + return 0; +}
--- a/run/sizeof_03.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/sizeof_03.d Sun Feb 26 17:45:46 2006 +0000 @@ -5,7 +5,7 @@ module dstress.run.sizeof_03; int main(){ - bit i[]; + bool i[]; i.length=4; assert(i.length==4); assert(i.sizeof==8);
--- a/run/slice_07.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/slice_07.d Sun Feb 26 17:45:46 2006 +0000 @@ -5,13 +5,13 @@ module dstress.run.slice_07; int main(){ - bit[] a; + bool[] a; a.length=2; a[] = true; assert(a[0]); assert(a[1]); - bit[] b; + bool[] b; b.length=2; assert(!b[0]); assert(!b[1]);
--- a/run/slice_09.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/slice_09.d Sun Feb 26 17:45:46 2006 +0000 @@ -2,17 +2,16 @@ // $Date$ // $Author$ -// __DSTRESS_TORTURE_BLOCK__ -release module dstress.run.slice_09; int main(){ - bit[] a; + bool[] a; a.length=2; a[] = true; assert(a[0]); assert(a[1]); - bit[] b; + bool[] b; b.length=2; assert(!b[0]); assert(!b[1]);
--- a/run/sort_01.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/sort_01.d Sun Feb 26 17:45:46 2006 +0000 @@ -5,13 +5,13 @@ module dstress.run.sort_01; int main(){ - bit a[]; + bool a[]; a.length=3; a[0]=false; a[1]=true; a[2]=false; - bit[] b=a.sort; + bool[] b=a.sort; assert(a.length==3); assert(!a[0]);
--- a/run/typeid_16.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/typeid_16.d Sun Feb 26 17:45:46 2006 +0000 @@ -6,9 +6,9 @@ module dstress.run.typeid_16; int main(){ - TypeInfo ti = typeid(bit); + TypeInfo ti = typeid(bool); assert(!(ti is null)); - assert(ti.tsize==bit.sizeof); - assert(ti.toString()=="bit"); + assert(ti.tsize==bool.sizeof); + assert(ti.toString()=="bool"); return 0; }
--- a/run/typeid_17.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/typeid_17.d Sun Feb 26 17:45:46 2006 +0000 @@ -6,17 +6,17 @@ module dstress.run.typeid_17; int main(){ - TypeInfo ti = typeid(bit[]); + TypeInfo ti = typeid(bool[]); assert(!(ti is null)); assert(ti); - assert(ti.tsize==(bit[]).sizeof); - assert(ti.toString()=="bit[]"); + assert(ti.tsize==(bool[]).sizeof); + assert(ti.toString()=="bool[]"); TypeInfo_Array ta = cast(TypeInfo_Array) ti; assert(!(ta is null)); assert(ta); - assert(ta.tsize==(bit[]).sizeof); - assert(ta.toString()=="bit[]"); + assert(ta.tsize==(bool[]).sizeof); + assert(ta.toString()=="bool[]"); return 0; }
--- a/run/typeid_18.d Sat Feb 25 08:30:52 2006 +0000 +++ b/run/typeid_18.d Sun Feb 26 17:45:46 2006 +0000 @@ -6,9 +6,9 @@ module dstress.run.typeid_18; int main(){ - TypeInfo ti = typeid(bit*); + TypeInfo ti = typeid(bool*); assert(!(ti is null)); - assert(ti.tsize==(bit*).sizeof); - assert(ti.toString()=="bit*"); + assert(ti.tsize==(bool*).sizeof); + assert(ti.toString()=="bool*"); return 0; }