# HG changeset patch # User thomask # Date 1098571667 0 # Node ID 5f98d4a33d49ad308c8ddc92b317ea3fee06f107 # Parent d56c4d38d9876622dc66d41229a3e97e52426d97 1) review of all test cases with unexpected results (except encoding and html/xml) 2) updated todo diff -r d56c4d38d987 -r 5f98d4a33d49 compile/abstract_01.d --- 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 // @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; diff -r d56c4d38d987 -r 5f98d4a33d49 compile/abstract_02.d --- 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 // @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; diff -r d56c4d38d987 -r 5f98d4a33d49 compile/abstract_03.d --- 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 // @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; diff -r d56c4d38d987 -r 5f98d4a33d49 compile/abstract_04.d --- 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 // @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; diff -r d56c4d38d987 -r 5f98d4a33d49 compile/enum_05.d --- 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; diff -r d56c4d38d987 -r 5f98d4a33d49 compile/mixin_01.d --- 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 // @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; diff -r d56c4d38d987 -r 5f98d4a33d49 complex/debug/debug_02.d --- 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 +// @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); diff -r d56c4d38d987 -r 5f98d4a33d49 nocompile/alias_05.d --- 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; diff -r d56c4d38d987 -r 5f98d4a33d49 nocompile/align_01.d --- 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; } diff -r d56c4d38d987 -r 5f98d4a33d49 nocompile/align_03.d --- 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; diff -r d56c4d38d987 -r 5f98d4a33d49 nocompile/align_05.d --- 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; diff -r d56c4d38d987 -r 5f98d4a33d49 nocompile/cast_04.d --- 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 // @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; diff -r d56c4d38d987 -r 5f98d4a33d49 nocompile/deprecated_06.d --- 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; -} diff -r d56c4d38d987 -r 5f98d4a33d49 nocompile/deprecated_07.d --- 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; -} diff -r d56c4d38d987 -r 5f98d4a33d49 nocompile/deprecated_08.d --- 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; -} diff -r d56c4d38d987 -r 5f98d4a33d49 nocompile/escape_octal_02.d --- 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; diff -r d56c4d38d987 -r 5f98d4a33d49 nocompile/evaluation_order_01.d --- 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; diff -r d56c4d38d987 -r 5f98d4a33d49 nocompile/evaluation_order_02.d --- 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; } diff -r d56c4d38d987 -r 5f98d4a33d49 nocompile/evaluation_order_03.d --- 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){ } diff -r d56c4d38d987 -r 5f98d4a33d49 nocompile/final_04.d --- 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; diff -r d56c4d38d987 -r 5f98d4a33d49 nocompile/final_07.d --- 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; } diff -r d56c4d38d987 -r 5f98d4a33d49 nocompile/final_09.d --- 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; } diff -r d56c4d38d987 -r 5f98d4a33d49 nocompile/final_10.d --- 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; } diff -r d56c4d38d987 -r 5f98d4a33d49 nocompile/final_11.d --- 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(){ } diff -r d56c4d38d987 -r 5f98d4a33d49 nocompile/float_litaeral_dec_08.d --- 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; diff -r d56c4d38d987 -r 5f98d4a33d49 nocompile/float_litaeral_dec_09.d --- 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; diff -r d56c4d38d987 -r 5f98d4a33d49 nocompile/integer_literal_dec_01.d --- 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; diff -r d56c4d38d987 -r 5f98d4a33d49 nocompile/invariant_04.d --- 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 +// @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; diff -r d56c4d38d987 -r 5f98d4a33d49 nocompile/invariant_06.d --- 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 +// @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; diff -r d56c4d38d987 -r 5f98d4a33d49 nocompile/invariant_17.d --- 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 +// @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; diff -r d56c4d38d987 -r 5f98d4a33d49 nocompile/override_03.d --- 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; diff -r d56c4d38d987 -r 5f98d4a33d49 nocompile/override_05.d --- 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; diff -r d56c4d38d987 -r 5f98d4a33d49 nocompile/override_06.d --- 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(){ diff -r d56c4d38d987 -r 5f98d4a33d49 nocompile/override_07.d --- 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; diff -r d56c4d38d987 -r 5f98d4a33d49 nocompile/override_08.d --- 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; diff -r d56c4d38d987 -r 5f98d4a33d49 nocompile/override_09.d --- /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(); +} diff -r d56c4d38d987 -r 5f98d4a33d49 nocompile/static_07.d --- 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; diff -r d56c4d38d987 -r 5f98d4a33d49 nocompile/static_11.d --- 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; diff -r d56c4d38d987 -r 5f98d4a33d49 nocompile/try_05.d --- 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; } diff -r d56c4d38d987 -r 5f98d4a33d49 readme.txt --- 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) + diff -r d56c4d38d987 -r 5f98d4a33d49 run/alias_07.d --- 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 // @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; diff -r d56c4d38d987 -r 5f98d4a33d49 run/alias_09.d --- 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 // @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[]){ } diff -r d56c4d38d987 -r 5f98d4a33d49 run/align_06.d --- 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; diff -r d56c4d38d987 -r 5f98d4a33d49 run/array_initialization_01.d --- 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 -// @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; -} diff -r d56c4d38d987 -r 5f98d4a33d49 run/auto_01.d --- 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 // @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(){ diff -r d56c4d38d987 -r 5f98d4a33d49 run/auto_03.d --- 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 // @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; diff -r d56c4d38d987 -r 5f98d4a33d49 run/auto_04.d --- 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 // @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; diff -r d56c4d38d987 -r 5f98d4a33d49 run/cast_01.d --- 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 // @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 diff -r d56c4d38d987 -r 5f98d4a33d49 run/cast_02.d --- 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 // @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 diff -r d56c4d38d987 -r 5f98d4a33d49 run/cast_05.d --- 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 // @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; diff -r d56c4d38d987 -r 5f98d4a33d49 run/const_01.d --- 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 // @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; diff -r d56c4d38d987 -r 5f98d4a33d49 run/constructor_02.d --- 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 // @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; diff -r d56c4d38d987 -r 5f98d4a33d49 run/destructor_03.d --- 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 // @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; diff -r d56c4d38d987 -r 5f98d4a33d49 run/dup_04.d --- 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 // @date@ 2004-10-11 // @url@ nttp://digitalmars.com/digitalmars.D.bugs:2068 diff -r d56c4d38d987 -r 5f98d4a33d49 run/float_litaeral_dec_02.d --- 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; -} diff -r d56c4d38d987 -r 5f98d4a33d49 run/float_litaeral_dec_10.d --- /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; +} diff -r d56c4d38d987 -r 5f98d4a33d49 run/foreach_16.d --- 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; diff -r d56c4d38d987 -r 5f98d4a33d49 run/interface_05.d --- 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 // @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; diff -r d56c4d38d987 -r 5f98d4a33d49 run/invariant_11.d --- 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 +// @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; diff -r d56c4d38d987 -r 5f98d4a33d49 run/invariant_14.d --- 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 +// @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{ diff -r d56c4d38d987 -r 5f98d4a33d49 run/invariant_15.d --- 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 +// @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{ diff -r d56c4d38d987 -r 5f98d4a33d49 run/invariant_18.d --- 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 +// @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{ diff -r d56c4d38d987 -r 5f98d4a33d49 run/line_token_03.d --- 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); } /* diff -r d56c4d38d987 -r 5f98d4a33d49 run/line_token_04.d --- 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 // @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{ diff -r d56c4d38d987 -r 5f98d4a33d49 run/opCast_01.d --- 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. +// @date@ 2004-09-18 +// @uri@ news://cihrpp$9gt$1@digitaldeamon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:1865 -// @author@ Carlos Santander B. -// @author@ 2004-09-18 +module dstress.run.opCast_01; class Parent{ void test(int i){ diff -r d56c4d38d987 -r 5f98d4a33d49 run/opCast_02.d --- 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. +// @date@ 2004-09-18 +// @uri@ news://cihrpp$9gt$1@digitaldeamon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:1865 -// @author@ Carlos Santander B. -// @author@ 2004-09-18 +module dstress.run.opCast_02; + class Parent{ void test(int i){ diff -r d56c4d38d987 -r 5f98d4a33d49 run/opCast_03.d --- /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; +} diff -r d56c4d38d987 -r 5f98d4a33d49 run/opCatAssign_05.d --- 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; diff -r d56c4d38d987 -r 5f98d4a33d49 run/opCat_01.d --- 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"; diff -r d56c4d38d987 -r 5f98d4a33d49 run/opCat_03.d --- 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"; diff -r d56c4d38d987 -r 5f98d4a33d49 run/opCmp_01.d --- 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 // @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){ diff -r d56c4d38d987 -r 5f98d4a33d49 run/overload_06.d --- 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 // @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 ){ diff -r d56c4d38d987 -r 5f98d4a33d49 run/overload_07.d --- 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 // @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; diff -r d56c4d38d987 -r 5f98d4a33d49 run/real_03.d --- 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; diff -r d56c4d38d987 -r 5f98d4a33d49 run/scope_01.d --- 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 +// @date@ 2004-05-01 +// @uri@ news://c70jk9$off$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:53 -// @author@ J Anderson -// @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; diff -r d56c4d38d987 -r 5f98d4a33d49 run/slice_03.d --- 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 // @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'); diff -r d56c4d38d987 -r 5f98d4a33d49 run/sort_01.d --- 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; diff -r d56c4d38d987 -r 5f98d4a33d49 run/switch_03.d --- 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); diff -r d56c4d38d987 -r 5f98d4a33d49 run/template_03.d --- 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 // @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){ diff -r d56c4d38d987 -r 5f98d4a33d49 run/template_class_03.d --- 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 // @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; diff -r d56c4d38d987 -r 5f98d4a33d49 run/template_class_04.d --- 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 // @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(){ } diff -r d56c4d38d987 -r 5f98d4a33d49 run/template_class_05.d --- 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 // @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){ } diff -r d56c4d38d987 -r 5f98d4a33d49 run/throw_02.d --- 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; -} diff -r d56c4d38d987 -r 5f98d4a33d49 run/typedef_03.d --- 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 // @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; diff -r d56c4d38d987 -r 5f98d4a33d49 run/version_10.d --- 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; } diff -r d56c4d38d987 -r 5f98d4a33d49 run/version_11.d --- 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; } diff -r d56c4d38d987 -r 5f98d4a33d49 run/version_16.d --- /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; +} diff -r d56c4d38d987 -r 5f98d4a33d49 run/with_11.d --- 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 // @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{ } diff -r d56c4d38d987 -r 5f98d4a33d49 todo.txt --- 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