Mercurial > projects > dstress
changeset 70:5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
2) updated todo
line wrap: on
line diff
--- a/compile/abstract_01.d Sat Oct 23 10:12:58 2004 +0000 +++ b/compile/abstract_01.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,5 +1,9 @@ // @author@ Steward Gordon <Steward_member@pathlink.com> // @date@ 2004-09-24 +// @uri@ news://cj0qf6$2u2v$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:1940 + +module dstress.compile.abstract_01; int status;
--- a/compile/abstract_02.d Sat Oct 23 10:12:58 2004 +0000 +++ b/compile/abstract_02.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,5 +1,9 @@ // @author@ Steward Gordon <Steward_member@pathlink.com> // @date@ 2004-09-24 +// @uri@ news://cj0qf6$2u2v$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:1940 + +module dstress.compile.abstract_02; int status;
--- a/compile/abstract_03.d Sat Oct 23 10:12:58 2004 +0000 +++ b/compile/abstract_03.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,5 +1,9 @@ // @author@ Steward Gordon <Steward_member@pathlink.com> // @date@ 2004-09-24 +// @uri@ news://cj0qf6$2u2v$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:1940 + +module dstress.compile.abstract_03; int status;
--- a/compile/abstract_04.d Sat Oct 23 10:12:58 2004 +0000 +++ b/compile/abstract_04.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,5 +1,9 @@ // @author@ Steward Gordon <Steward_member@pathlink.com> // @date@ 2004-09-24 +// @uri@ news://cj0qf6$2u2v$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:1940 + +module dstress.compile.abstract_04; int status;
--- a/compile/enum_05.d Sat Oct 23 10:12:58 2004 +0000 +++ b/compile/enum_05.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,3 +1,4 @@ +module dstress.compile.enum_05; extern enum MyEnum;
--- a/compile/mixin_01.d Sat Oct 23 10:12:58 2004 +0000 +++ b/compile/mixin_01.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,5 +1,9 @@ // @author@ Vathix <vathixSpamFix@dprogramming.com> // @date@ 2004-09-08 +// @uri@ news://chns86$192c$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digtalmars.D.bugs:1815 + +module dstress.compile.mixin_01; template mix(){ int x;
--- a/complex/debug/debug_02.d Sat Oct 23 10:12:58 2004 +0000 +++ b/complex/debug/debug_02.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,3 +1,10 @@ +// @author@ Thomas Kuehne <eisvogel@users.sourceforge.net> +// @date@ 2004-10-16 +// @uri@ news://ckro4i$1b4l$2@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:2119 + +module dstress.complex.debug_.debug_02; + int main(){ int i=0; assert(i==0);
--- a/nocompile/alias_05.d Sat Oct 23 10:12:58 2004 +0000 +++ b/nocompile/alias_05.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,3 +1,4 @@ +module dstress.nocompile.alias_05; alias int myint;
--- a/nocompile/align_01.d Sat Oct 23 10:12:58 2004 +0000 +++ b/nocompile/align_01.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,4 +1,6 @@ // according to the documentation align can only be applied to struct members +module dstress.nocompile.align_01; + align (1) int check(){ return 5; }
--- a/nocompile/align_03.d Sat Oct 23 10:12:58 2004 +0000 +++ b/nocompile/align_03.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,4 +1,6 @@ // according to the documentation align can only be applied to struct members +module dstress.nocompile.align_03; + align (1) struct MyStruct{ int a; byte* b;
--- a/nocompile/align_05.d Sat Oct 23 10:12:58 2004 +0000 +++ b/nocompile/align_05.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,4 +1,7 @@ // according to the documentation align can only be applied to struct members + +module dstress.nocompile.align_05; + align (2) class MyClass{ int a; byte* b;
--- a/nocompile/cast_04.d Sat Oct 23 10:12:58 2004 +0000 +++ b/nocompile/cast_04.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,7 +1,9 @@ - // @author@ Nick <Nick_member@pathlink.com> // @date@ 2004-08-02 // @uri@ news://cejsno$2g2s$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:1238 + +module dstress.nocompile.cast_04; int main(){ creal c = 3 + 5i;
--- a/nocompile/deprecated_06.d Sat Oct 23 10:12:58 2004 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ - -class MyClass{ - deprecated static check(){ - } -} - -int main(){ - MyClass c = new MyClass(); - c.check(); - return 0; -}
--- a/nocompile/deprecated_07.d Sat Oct 23 10:12:58 2004 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ - -deprecated struct MyStruct{ -} - -int main(){ - MyStruct c; - return 0; -}
--- a/nocompile/deprecated_08.d Sat Oct 23 10:12:58 2004 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ - -struct MyStruct{ - deprecated check(){ - } -} - -int main(){ - MyStruct s; - s.check(); - return 0; -}
--- a/nocompile/escape_octal_02.d Sat Oct 23 10:12:58 2004 +0000 +++ b/nocompile/escape_octal_02.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,3 +1,7 @@ +// a zero length octal escape sequenze + +module dstress.nocompile.escape_octal_02; + int main(){ char[] string="\08"; return 0;
--- a/nocompile/evaluation_order_01.d Sat Oct 23 10:12:58 2004 +0000 +++ b/nocompile/evaluation_order_01.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,3 +1,4 @@ +module dstress.nocompile.evaluation_order_01; int main(){ int i;
--- a/nocompile/evaluation_order_02.d Sat Oct 23 10:12:58 2004 +0000 +++ b/nocompile/evaluation_order_02.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,6 +1,8 @@ +module dstress.nocompile.evaluation_order_02; int main(){ - int a, b, c; - c = a + (a = b); + int a=1; + int b=2; + int c = a + (a = b); return 0; }
--- a/nocompile/evaluation_order_03.d Sat Oct 23 10:12:58 2004 +0000 +++ b/nocompile/evaluation_order_03.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,3 +1,4 @@ +module dstress.nocompile.evaluation_order_03; void check( int a, int b){ }
--- a/nocompile/final_04.d Sat Oct 23 10:12:58 2004 +0000 +++ b/nocompile/final_04.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,1 +1,5 @@ +// only class member functions might be final + +module dstress.nocompile.final_04; + final int x;
--- a/nocompile/final_07.d Sat Oct 23 10:12:58 2004 +0000 +++ b/nocompile/final_07.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,3 +1,7 @@ +// only class functions might be final + +module dstress.nocompile.final_07; + final struct MyStruct{ int dummy; }
--- a/nocompile/final_09.d Sat Oct 23 10:12:58 2004 +0000 +++ b/nocompile/final_09.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,3 +1,7 @@ +// only functions might be final + +module dstress.nocompile.final_09; + class MyClass{ final int test; }
--- a/nocompile/final_10.d Sat Oct 23 10:12:58 2004 +0000 +++ b/nocompile/final_10.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,3 +1,7 @@ +// only functions might have the attribute final + +module dstress.nocompile.final_10; + struct MyStruct{ final int test; }
--- a/nocompile/final_11.d Sat Oct 23 10:12:58 2004 +0000 +++ b/nocompile/final_11.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,3 +1,7 @@ +// only class functions might be final (structs can't inherite) + +module dstress.nocompile.final_11; + struct MyStruct{ final void test(){ }
--- a/nocompile/float_litaeral_dec_08.d Sat Oct 23 10:12:58 2004 +0000 +++ b/nocompile/float_litaeral_dec_08.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,3 +1,6 @@ +// this is illegal otherwise 0..max would be legal for 0.max +module dstress.nocompile.float_literal_dec_08; + int main(){ float f = 0. ; return 0;
--- a/nocompile/float_litaeral_dec_09.d Sat Oct 23 10:12:58 2004 +0000 +++ b/nocompile/float_litaeral_dec_09.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,3 +1,6 @@ +// this is illegal otherwise 1..0 would be interpeted as 1.0 +module dstress.nocompile.float_literal_dec_09; + int main(){ float f = .0 ; return 0;
--- a/nocompile/integer_literal_dec_01.d Sat Oct 23 10:12:58 2004 +0000 +++ b/nocompile/integer_literal_dec_01.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,3 +1,5 @@ +module dstress.nocompile.integer_literal_dec_01; + int main(){ long l = 9_223_372_036_854_775_808; // long.max+1 return 0;
--- a/nocompile/invariant_04.d Sat Oct 23 10:12:58 2004 +0000 +++ b/nocompile/invariant_04.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,3 +1,8 @@ +// @author@ Thomas Kuehne <thomas-dloop@kuehne.cn> +// @date@ 2004-10-22 +// @uri@ news://clbr09$uc6$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:2140 + // invariant is only allowed in classes (dmd-0.104 documentation) module dstress.nocompile.invariant_04;
--- a/nocompile/invariant_06.d Sat Oct 23 10:12:58 2004 +0000 +++ b/nocompile/invariant_06.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,3 +1,8 @@ +// @author@ Thomas Kuehne <thomas-dloop@kuehne.cn> +// @date@ 2004-10-22 +// @uri@ news://clbr09$uc6$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:2140 + // invariant is only allowed in classes (dmd-0.104 documentation) module dstress.nocompile.invariant_06;
--- a/nocompile/invariant_17.d Sat Oct 23 10:12:58 2004 +0000 +++ b/nocompile/invariant_17.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,3 +1,8 @@ +// @author@ Thomas Kuehne <thomas-dloop@kuehne.cn> +// @date@ 2004-10-22 +// @uri@ news://clbr09$uc6$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:2140 + // invariant may not call non-static public class member functions (stack overflow) module dstress.nocompile.invariant_17;
--- a/nocompile/override_03.d Sat Oct 23 10:12:58 2004 +0000 +++ b/nocompile/override_03.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,3 +1,5 @@ +// override can only be applied to class functions +module dstress.nocompile.override_03; class Parent{ int check;
--- a/nocompile/override_05.d Sat Oct 23 10:12:58 2004 +0000 +++ b/nocompile/override_05.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,3 +1,5 @@ +// override can only be applied to class functions +module dstress.nocompile.override_05; struct MyStruct{ override int x;
--- a/nocompile/override_06.d Sat Oct 23 10:12:58 2004 +0000 +++ b/nocompile/override_06.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,3 +1,5 @@ +// override can only be applied to class functions +module dstress.nocompile.override_06; struct MyStruct{ override int x(){
--- a/nocompile/override_07.d Sat Oct 23 10:12:58 2004 +0000 +++ b/nocompile/override_07.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,3 +1,5 @@ +// override can only be applied to class functions +module dstress.nocompile.override_07; override int check;
--- a/nocompile/override_08.d Sat Oct 23 10:12:58 2004 +0000 +++ b/nocompile/override_08.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,3 +1,5 @@ +// override can only be applied to class functions +module dstress.nocompile.override_08; override int check(){ return 0;
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/override_09.d Sat Oct 23 22:47:47 2004 +0000 @@ -0,0 +1,11 @@ +// only class member functions can be overridden + +module dstress.nocompile.override_09; + +interface Parent{ + void test(); +} + +interface Child : Parent{ + override void test(); +}
--- a/nocompile/static_07.d Sat Oct 23 10:12:58 2004 +0000 +++ b/nocompile/static_07.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,3 +1,6 @@ +// static can only be applied to members of a type (class, struct, union) + +module dstress.nocompile.static_07; static int test(){ return 1;
--- a/nocompile/static_11.d Sat Oct 23 10:12:58 2004 +0000 +++ b/nocompile/static_11.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,3 +1,6 @@ +// static can only be applied to members of a type (class, struct, union) + +module dstress.nocompile.static_11; static int status;
--- a/nocompile/try_05.d Sat Oct 23 10:12:58 2004 +0000 +++ b/nocompile/try_05.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,16 +1,20 @@ +// it is an error if any Catch Parameter type T1 hides a subsequent Catch with type T2 + +module dstress.nocompile.try_05; class MyException : Exception{ this(char[] msg){ super(msg); } } + int main(){ try{ throw new MyException(""); }catch(Exception){ assert(0); }catch(MyException){ - assert(0); + assert(1); } return 0; }
--- a/readme.txt Sat Oct 23 10:12:58 2004 +0000 +++ b/readme.txt Sat Oct 23 22:47:47 2004 +0000 @@ -23,4 +23,11 @@ XFAIL: unexpected failure PASS: expected pass XPASS: unexpected pass - + +Source code comments: + @author@ reporter / author + @date@ year-month-day + @uri@ message id + @url@ message xRef + @WARNING@ external dependencies (e.g. Phobos) +
--- a/run/alias_07.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/alias_07.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,6 +1,9 @@ - // @author@ Ilya Zaitseff <sark7@mail333.com> // @date@ 2004-09-06 +// @uri@ news://opsdvofhixaaezs2@ilya.tec.amursk.ru +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:1795 + +module dstress.run.alias_07; alias int MyInt;
--- a/run/alias_09.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/alias_09.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,5 +1,9 @@ // @author@ Nick <Nick_member@pathlink.com> // @date@ 2004-09-11 +// @uri@ news://chtj6t$24bm$1@digitalmars.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:1821 + +module dstress.run.alias_09; class foo(T: T[]){ }
--- a/run/align_06.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/align_06.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,3 +1,5 @@ +module dtress.run.align_06; + struct SmallStruct{ align(1) byte a; align(1) byte b;
--- a/run/array_initialization_01.d Sat Oct 23 10:12:58 2004 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ - -// @author@ Drew McCormack <drewmccormack@mac.com> -// @date@ 2004-04-29 -// @uri@ news://c6qbes$8fg$1@digitaldaemon.com - -int main(){ - int[2] i = [5, 13]; - assert(i.length == 2); - assert(i[0] == 5); - assert(i[1] == 13); - return 0; -}
--- a/run/auto_01.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/auto_01.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,6 +1,10 @@ - // @author@ Sean Kelly <sean@f4.ca> // @date@ 2004-09-11 +// @uri@ news://chtj6t$24bm$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:1821 + +module dstress.run.auto_01; + auto class AutoClass{ this(){
--- a/run/auto_03.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/auto_03.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,6 +1,9 @@ - // @author@ Sean Kelly <sean@f4.ca> // @date@ 2004-09-11 +// @uri@ news://chtj6t$24bm$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:1821 + +module dstress.run.auto_03; int status;
--- a/run/auto_04.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/auto_04.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,6 +1,9 @@ - // @author@ Sean Kelly <sean@f4.ca> // @date@ 2004-09-11 +// @uri@ news://chtj6t$24bm$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:1821 + +module dstress.run.auto_04; int status;
--- a/run/cast_01.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/cast_01.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,7 +1,9 @@ - // @author@ Regan Heat <regan@netwin.co.nz> // @date@ 2004-08-19 // @uri@ news://opsczziyi5a2sq9@digitalmars.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:1407 + +module dstress.run.cast_01; enum Enum{ a
--- a/run/cast_02.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/cast_02.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,7 +1,9 @@ - // @author@ Regan Heat <regan@netwin.co.nz> // @date@ 2004-08-19 // @uri@ news://opsczziyi5a2sq9@digitalmars.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:1407 + +module dstress.run.cast_02; enum Enum{ a
--- a/run/cast_05.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/cast_05.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,7 +1,9 @@ - // @author@ Nick <Nick_member@pathlink.com> // @date@ 2004-08-06 // @uri@ news://cf0mo2$rfi$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:1296 + +module dstress.run.cast_05; int main(){ long l = cast(long) 12.0;
--- a/run/const_01.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/const_01.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,7 +1,9 @@ - // @author@ Stewart Gordon <smjg_1998@yahoo.com> // @date@ 2004-08-10 // @uri@ news://cfa5h3$1hf0$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:1326 + +module dstress.run.const_01; struct MyStruct{ int i;
--- a/run/constructor_02.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/constructor_02.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,5 +1,9 @@ // @author@ Bastiaan Veelo <Bastiaan.N.Veelo@ntu.no> // @date@ 2004-09-21 +// @uri@ news://cip39j$v4s$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:1890 + +module dstress.run.constructor_02; int status;
--- a/run/destructor_03.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/destructor_03.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,7 +1,9 @@ - // @author@ Ilya Zaitseff <sark7@mail333.com> // @date@ 2004-08-06 // @uri@ news://opscahl7ddaaezs2@ilya.tec.amursk.ru +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:1284 + +module dstress.run.destructor_03; int status;
--- a/run/dup_04.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/dup_04.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,4 +1,3 @@ -// based on a report by: // @author@ Russ Lewis <spamhole-2001-07-16@deming-os.org> // @date@ 2004-10-11 // @url@ nttp://digitalmars.com/digitalmars.D.bugs:2068
--- a/run/float_litaeral_dec_02.d Sat Oct 23 10:12:58 2004 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,9 +0,0 @@ -int main(){ - float f = 1.2e-3; - float a = 12.0; - float b = 10000.0; - float c = a/b; - assert(f == c); - assert(f == cast(float)a/b); - return 0; -}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/float_litaeral_dec_10.d Sat Oct 23 22:47:47 2004 +0000 @@ -0,0 +1,6 @@ +module dstress.run.float_literal_dec_10; + +int main(){ + assert(0.0.max == double.max); + return 0; +}
--- a/run/foreach_16.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/foreach_16.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,10 +1,7 @@ +module dstress.run.foreach_16; + int main(){ - char[] string; - string.length=4; - string[0] = 0xF0; - string[1] = 0x9D; - string[2] = 0x83; - string[3] = 0x93; + char[] string = x"F0 9D 83 93"; // utf-8 for U+1D0D3 int count=0; wchar tmp;
--- a/run/interface_05.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/interface_05.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,5 +1,9 @@ // @author@ Steward Gordon <smjg_1998@yahoo.com> // @date@ 2004-09-01 +// @uri@ news://ch44sj$211s$2@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:1726 + +module dstress.run.interface_05; int status;
--- a/run/invariant_11.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/invariant_11.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,3 +1,8 @@ +// @author@ Thomas Kuehne <thomas-dloop@kuehne.cn> +// @date@ 2004-10-22 +// @uri@ news://clbr09$uc6$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:2140 + // the name function name "_invariant" isn't forbidden (dmd-0.104 documentation) module dstress.run.invariant_11;
--- a/run/invariant_14.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/invariant_14.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,3 +1,8 @@ +// @author@ Thomas Kuehne <thomas-dloop@kuehne.cn> +// @date@ 2004-10-22 +// @uri@ news://clbr09$uc6$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:2140 + module dstress.run.invariant_14.d; class Parent{
--- a/run/invariant_15.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/invariant_15.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,3 +1,8 @@ +// @author@ Thomas Kuehne <thomas-dloop@kuehne.cn> +// @date@ 2004-10-22 +// @uri@ news://clbr09$uc6$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:2140 + module dstress.run.invariant_15.d; class Parent{
--- a/run/invariant_18.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/invariant_18.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,3 +1,8 @@ +// @author@ Thomas Kuehne <thomas-dloop@kuehne.cn> +// @date@ 2004-10-23 +// @uri@ news://cldaue$2gf4$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:2144 + module dstress.run.invariant_18; class MyClass{
--- a/run/line_token_03.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/line_token_03.d Sat Oct 23 22:47:47 2004 +0000 @@ -2,16 +2,12 @@ try{ #line 0 "" assert(0); - }catch(Exception e){ - checkFileSpec(e); - return 0; - }catch(Error e){ - checkFileSpec(e); + }catch(Object o){ + checkFileSpec(o); return 0; } - assert(-1); - return 1; + assert(0); } /*
--- a/run/line_token_04.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/line_token_04.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,23 +1,21 @@ +module dstress.run.line_token_04; + int main(){ try{ #line 0 "a" assert(0); - }catch(Exception e){ - checkFileSpec(e); - return 0; - }catch(Error e){ - checkFileSpec(e); + }catch(Object o){ + checkFileSpec(o); return 0; } - assert(-1); - return 1; + assert(0); } /* * @WARNING@: this code depends on the phobos implementation. * char[]s returned by wrong assertions have to look like: - * "blah blah "filename" blah blah" + * "blah blah \"filename\" blah blah" */ void checkFileSpec(Object o){ char[] string=o.toString(); @@ -36,7 +34,5 @@ } } - assert(end<string.length); - assert(end-start==2); - assert(string[start+1]=='a'); + assert(string[start .. end]=="\"a"); }
--- a/run/long_01.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/long_01.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,8 +1,9 @@ +module dstress.run.long_01; int main(){ long a; - assert(a.max == 0x7FFFFFFF); - assert(a.min == 0xFFFFFFFF); + assert(a.max == 0x7FFF_FFFF_FFFF_FFFFl); + assert(a.min == 0xFFFF_FFFF_FFFF_FFFFl); assert(a.init == 0); assert(a.sizeof == 4); return 0;
--- a/run/odd_bug_02.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/odd_bug_02.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,6 +1,11 @@ // @author@ Ben Hinkle <bhinkle4@juno.com> // @date@ 2004-09-26 +// @uri@ news://cj6g4d$9iv$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:1953 +module dstress.run.odd_bug_02; + +// @WARNING@: this code requires phobos import std.stdarg; struct TestStruct{
--- a/run/opCast_01.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/opCast_01.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,6 +1,9 @@ +// @author@ Carlos Santander B. <carlos8294@msn.com> +// @date@ 2004-09-18 +// @uri@ news://cihrpp$9gt$1@digitaldeamon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:1865 -// @author@ Carlos Santander B. <carlos8294@msn.com> -// @author@ 2004-09-18 +module dstress.run.opCast_01; class Parent{ void test(int i){
--- a/run/opCast_02.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/opCast_02.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,6 +1,10 @@ +// @author@ Carlos Santander B. <carlos8294@msn.com> +// @date@ 2004-09-18 +// @uri@ news://cihrpp$9gt$1@digitaldeamon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:1865 -// @author@ Carlos Santander B. <carlos8294@msn.com> -// @author@ 2004-09-18 +module dstress.run.opCast_02; + class Parent{ void test(int i){
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/opCast_03.d Sat Oct 23 22:47:47 2004 +0000 @@ -0,0 +1,11 @@ +module dstress.run.opCast_03; + +int main(){ + float f = 1.2e-3; + float a = 12.0; + float b = 10000.0; + float c = a/b; + assert(f == c); + assert(f == cast(float) (a/b)); + return 0; +}
--- a/run/opCatAssign_05.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/opCatAssign_05.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,3 +1,5 @@ +module dstress.run.opCatAsign_05; + int main(){ bit[] a; a.length=3;
--- a/run/opCat_01.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/opCat_01.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,3 +1,5 @@ +module dstress.run.opCat_01; + int main(){ dchar[] a="abc"; dchar[] b="efg";
--- a/run/opCat_03.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/opCat_03.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,3 +1,5 @@ +module dstress.run.opCat_03; + int main(){ wchar[] a="abc"; wchar[] b="efg";
--- a/run/opCmp_01.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/opCmp_01.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,7 +1,9 @@ - // @author@ k2 <k2_member@pathlink.com> // @date@ 2004-08-04 // @uri@ news://ceq9g7$25mj$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:1248 + +module dstress.run.opCmp_01; struct MyStruct{ int opCmp(MyStruct m){
--- a/run/overload_06.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/overload_06.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,11 +1,12 @@ - // @author@ Sean Kelly <sean@f4.ca> // @date@ 2004-07-28 // @uri@ news://ce8u1g$ibj$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:1173 + +module dstress.run.overload_06; int main(){ void foo( int x ){ - assert(0); } void foo( short s ){
--- a/run/overload_07.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/overload_07.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,7 +1,9 @@ - // @author@ Andy Friesen <andy@ikagames.com> // @date@ 2004-04-30 // @uri@ news://c6s698$2nt$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:32 + +module dstress.run.overload_07; int status;
--- a/run/real_03.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/real_03.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,3 +1,4 @@ +module dstress.run.real_03; int main(){ real r;
--- a/run/scope_01.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/scope_01.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,7 +1,9 @@ +// @author@ J Anderson <REMOVEanderson@badmama.com.au> +// @date@ 2004-05-01 +// @uri@ news://c70jk9$off$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:53 -// @author@ J Anderson <REMOVEanderson@badmama.com.au> -// @date@ 2004-01-05 -// @uri@ news://c70jk9$off$1@digitaldaemon.com +module dstress.run.scope_01; int check; @@ -11,13 +13,16 @@ } void call(){ + assert(check==0); assert(status==3); + check+=1; s.test(); - check+=5; + check+=4; } struct MyStruct{ void test(){ + assert(check==1); assert(status==3); status=4; check+=3;
--- a/run/slice_03.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/slice_03.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,8 +1,13 @@ // @author@ Steward Gordon <smjg_1998@yahoo.com> // @date@ 2004-09-15 +// @uri@ news://ci94i9$1352$2@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:1849 + +module dstress.run.slice_03; int main(){ - char[] array = new char[4]; + char[] array; + array.length=4; char letter = 'a'; array[0..4]=letter; assert(array[0]=='a');
--- a/run/sort_01.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/sort_01.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,3 +1,6 @@ +// sort is documented as a general array property +module dstress.run.sort_01; + int main(){ bit a[]; a.length=3;
--- a/run/switch_03.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/switch_03.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,3 +1,6 @@ +// SwitchError should be a sub-class of Error witch in turn is a sub-class of Exception + +module dstress.run.switch_03; int main(){ int test=10; @@ -10,6 +13,8 @@ } }catch(Exception e){ test=1; + }catch{ + test=0; } assert(test==1);
--- a/run/template_03.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/template_03.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,7 +1,9 @@ - // @author@ Nick <Nick_member@pathlink.com> // @date@ 2004-08-05 // @uri@ news://cetp3r$1rrc$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:1278 + +module dstress.run.template_03; template Bar(Y){ void Bar(Y param){
--- a/run/template_class_03.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/template_class_03.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,6 +1,9 @@ - // @author@ Roel Mathys <roel.mathys@yucom.be> // @date@ 2004-05-21 +// @uri@ news://c8ljro$q9h$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:250 + +module dstress.run.template_class_03; class MyClass(T1){ alias T1 type1;
--- a/run/template_class_04.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/template_class_04.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,6 +1,9 @@ - // @author@ Bastiaan Veelo <Bastiaan.N.Veelo@ntnu.no> // @date@ 2004-09-23 +// @uri@ news://ciutbq$1lue$1@digitalmars.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:1932 + +module dstress.run.template_class_04; class Parent(){ }
--- a/run/template_class_05.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/template_class_05.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,6 +1,9 @@ - // @author@ Bastiaan Veelo <Bastiaan.N.Veelo@ntnu.no> // @date@ 2004-09-23 +// @uri@ news://ciutbq$1lue$1@digitalmars.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:1932 + +module dstress.run.template_class_05; class Parent(Type){ }
--- a/run/throw_02.d Sat Oct 23 10:12:58 2004 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,10 +0,0 @@ - -class MyClass{ - bool toss(){ - throw new Exception("e"); - } -} - -int main(){ - return 0; -}
--- a/run/typedef_03.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/typedef_03.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,7 +1,9 @@ - // @author@ Sam McCall <tunah@tunah.net> // @date@ 2004-07-27 // @uri@ news://ce586c$212e$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:1148 + +module dstress.run.typedef_03; public static final uint U = (cast(uint)(-1)) >>> 2;
--- a/run/version_10.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/version_10.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,31 +1,20 @@ // check that BigEndian and LittleEndian can't be defined at the same time -int main(){ - int status=0; - - assert(status==0); +module dstress.run.version_10; - version(BigEndian){ - version=LittleEndian; - version(LittleEndian){ - version(BigEndian){ - status++; +int status; +version(BigEndian){ + version=LittleEndian; + version(LittleEndian){ + version(BigEndian){ + static this(){ + status=1; } } } - - assert(status==0); +} - version(LittleEndian){ - version=BigEndian; - version(BigEndian){ - version(LittleEndian){ - status++; - } - } - } - +int main(){ assert(status==0); - return 0; }
--- a/run/version_11.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/version_11.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,17 +1,20 @@ // check that the compiler feature D_InlineAsm can't be set for a non-supporting compiler -int main(){ - int status=0; - assert(status==0); +module dstress.run.version_11; + +int status; +version(D_InlineAsm){ +}else{ + version = D_InlineAsm; version(D_InlineAsm){ - }else{ - version=D_InlineAsm; - version(D_InlineAsm){ - status++; + static this(){ + status=1; } } - +} + +int main(){ assert(status==0); return 0; }
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/version_16.d Sat Oct 23 22:47:47 2004 +0000 @@ -0,0 +1,21 @@ +// check that BigEndian and LittleEndian can't be defined at the same time +// see also version_10 + +module dstress.run.version_16; + +int status; +version(LittleEndian){ + version=BigEndian; + version(BigEndian){ + version(LittleEndian){ + static this(){ + status=1; + } + } + } +} + +int main(){ + assert(status==0); + return 0; +}
--- a/run/with_11.d Sat Oct 23 10:12:58 2004 +0000 +++ b/run/with_11.d Sat Oct 23 22:47:47 2004 +0000 @@ -1,5 +1,9 @@ // @author@ Nick <Nick_member@pathlink.com> // @date@ 2004-10-07 +// @uri@ news://ck3qie$1nia$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:2042 + +module dstress.run.with_11; auto class AutoClass{ }
--- a/todo.txt Sat Oct 23 10:12:58 2004 +0000 +++ b/todo.txt Sat Oct 23 22:47:47 2004 +0000 @@ -1,7 +1,3 @@ -(priority) -* general review / endian issues -* remove duplicated tests - (unordered) * keyword: asm * keyword: body @@ -20,7 +16,7 @@ * keyword: idouble * keyword: ifloat * keyword: import -* keyword: invariant (when: public, export, destructor; circumvent with pointers possible?) +* keyword: invariant (when: public, export, destructor; circumvention with pointers possible?) * keyword: ireal * keyword: module * keyword: package