Mercurial > projects > dstress
changeset 85:659bb018c489
1) changed "?DSTRESS_FLAGS?" to "__DSTRESS_DFLAGS__" in order to cope with botched shells
2) added several bug reports
3) fixed some test cases
line wrap: on
line diff
--- a/Makefile Fri Oct 29 21:04:52 2004 +0000 +++ b/Makefile Sun Oct 31 21:21:04 2004 +0000 @@ -80,7 +80,7 @@ ext_source_html = html complex_todo = complex.mak complex_done = complex.done -flag_pattern = §DSTRESS_FLAGS§ +flag_pattern = __DSTRESS_DFLAGS__ .PHONY: all basic_tools compile nocompile run norun complex clean distclean clean_log log
--- a/compile/unittest_02.d Fri Oct 29 21:04:52 2004 +0000 +++ b/compile/unittest_02.d Sun Oct 31 21:21:04 2004 +0000 @@ -3,7 +3,7 @@ // @uri@ news://cls8bk$16j5$1@digitaldaemon.com // @url@ nttp://digitalmars.com/digitalmars.D.bugs:2157 -// §DSTRESS_FLAGS§ -c -g +// __DSTRESS_FLAG__ -c -g module dstress.compile.unittest_02;
--- a/complex/command_line/complex.mak Fri Oct 29 21:04:52 2004 +0000 +++ b/complex/command_line/complex.mak Sun Oct 31 21:21:04 2004 +0000 @@ -17,7 +17,7 @@ # # -# NOTE: almost all tests can be written using §DSTRESS_FLAGS§ +# NOTE: almost all tests can be written using __DSTRESS_DFLAGS__ # .PHONY: \
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/bug_cgcod_1464.d Sun Oct 31 21:21:04 2004 +0000 @@ -0,0 +1,12 @@ +// @author@ Ivan Senji <ivan.senji@public.srce.hr> +// @date@ 2004-07-25 +// @uri@ news://ce0vvh$2j71$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:1106 + +module dstress.nocompile.bug_cgcod_1464; + +int main (){ + int x=3; + int[] a = (&x)[]; + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/bug_cgcs_353.d Sun Oct 31 21:21:04 2004 +0000 @@ -0,0 +1,18 @@ +// @author@ Regan Heath <regan@netwin.co.nz> +// @date@ 2004-06-10 +// @uri@ news://opr9c6ny1b5a2sq9@digitalmars.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:438 + +module dstress.nocompile.bug_cgcs_353; + +struct Bug { + ubyte[64] buffer; + + void fn(ubyte[] input){ + uint i; + + i = 64-buffer.length; + buffer[] ~= input[0..i]; + } +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/bug_cod4_352.d Sun Oct 31 21:21:04 2004 +0000 @@ -0,0 +1,14 @@ +// @author@ Hauke Duden <H.NS.Duden@gmx.net> +// @date@ 2004-07-04 +// @uri@ news://cc8qdr$oe8$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:700 + +module dstress.nocompile.bug_cod4_352; + +int main(){ + void[] x; + + x[0]=1; + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/bug_expression_1147.d Sun Oct 31 21:21:04 2004 +0000 @@ -0,0 +1,27 @@ +// @author@ Regan Heath <regan@netwin.co.nz> +// @date@ 2004-08-31 +// @uri@ news://opsdldgki75a2sq9@digitalmars.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:1685 + +module dstress.nocompile.bug_expression_1147; + +template A(Type : Type[]){ + bool A(Type[] a){ + this.bar(); + } +} + +template B(){ + bool foo(char[] x){ + return A!(typeof(x))(x); + } +} + +class C{ + mixin B; +} + +void main(){ + C c = new C(); + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/bug_mtype_3154.d Sun Oct 31 21:21:04 2004 +0000 @@ -0,0 +1,49 @@ +// @author@ Daniel Horn <hellcatv@hotmail.com> +// @date@ 2004-04-30 +// @uri@ news://c6ullo$104s$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:48 + +module dstress.nocompile.bug_mtype_3154; + +struct vec(VALUE, int size){ + + enum {nvalues=1} + + VALUE [size]f; + + VALUE* getAt(uint i) { + return i<size?&f[i]:&f[size-1]; + } + + VALUE opIndexAssign(uint i, VALUE v) { + return (*getAt(i))=v; + } + + VALUE opIndexAssign(uint i) { + return i<size?f[i]:f[size-1]; + } + + template T(zvec) { + zvec castTo() { + zvec ret; + for (int i=max(ret.nvalues-1,size-1);i>=0;i--) { + ret[i]=this[i]; + } + return ret; + } + } +} + +alias vec!(float,1) float1; +alias vec!(float,4) float4; + +int main (char[][]args) { + float1 a; + float4 b; + b[0]=1,b[1]=2,b[2]=3,b[3]=4; + a[1]=3; + b=a.T(float4).castTo();// <-- taking out this line stops the error + +// printf ("%f\n",b[1000]); + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/bug_s2ir_458.d Sun Oct 31 21:21:04 2004 +0000 @@ -0,0 +1,13 @@ +// @author@ k2 <k2_member@pathlink.com> +// @date@ 2004-10-31 +// @uri@ news://cm3gas$1il0$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:2166 + +module dstress.nocompile.bug_s2ir_458; + +void main(){ + try{ + break; + }catch{ + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/class_04.d Sun Oct 31 21:21:04 2004 +0000 @@ -0,0 +1,15 @@ +// @author@ Regan Heath <regan@netwin.co.nz> +// @date@ 2004-06-23 +// @uri@ news://opr90q0zkf5a2sq9@digitalmars.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:574 + +module dstress.nocompile.class_04; + +interface A { +} + +struct B { +} + +class C : B,A { +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/class_05.d Sun Oct 31 21:21:04 2004 +0000 @@ -0,0 +1,13 @@ +// @author@ Regan Heath <regan@netwin.co.nz> +// @date@ 2004-06-23 +// @uri@ news://opr90qshx15a2sq9@digitalmars.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:573 + +module dstress.nocompile.class_05; + +interface HashImpl(D) { +} + +class Sha1 : HashImpl { +} +
--- a/nocompile/command_line_debug_05.d Fri Oct 29 21:04:52 2004 +0000 +++ b/nocompile/command_line_debug_05.d Sun Oct 31 21:21:04 2004 +0000 @@ -1,4 +1,4 @@ -// §DSTRESS_FLAGS§ -debug=1A +// __DSTRESS_DFLAGS_ -debug=1A module stress.run.command_line_debug_05;
--- a/nocompile/command_line_debug_06.d Fri Oct 29 21:04:52 2004 +0000 +++ b/nocompile/command_line_debug_06.d Sun Oct 31 21:21:04 2004 +0000 @@ -1,4 +1,4 @@ -// §DSTRESS_FLAGS§ -debug123 +// __DSTRESS_DFLAGS__ -debug123 module stress.run.command_line_debug_06;
--- a/nocompile/command_line_debug_07.d Fri Oct 29 21:04:52 2004 +0000 +++ b/nocompile/command_line_debug_07.d Sun Oct 31 21:21:04 2004 +0000 @@ -1,4 +1,4 @@ -// §DSTRESS_FLAGS§ -debugabc +// __DSTRESS_DFLAGS__ -debugabc module stress.run.command_line_debug_06;
--- a/nocompile/command_line_debug_09.d Fri Oct 29 21:04:52 2004 +0000 +++ b/nocompile/command_line_debug_09.d Sun Oct 31 21:21:04 2004 +0000 @@ -1,4 +1,4 @@ -// §DSTRESS_FLAGS§ -debug= +// __DSTRESS_DFLAGS__ -debug= module dstress.nocompile.command_line_debug_09;
--- a/nocompile/command_line_version_04.d Fri Oct 29 21:04:52 2004 +0000 +++ b/nocompile/command_line_version_04.d Sun Oct 31 21:21:04 2004 +0000 @@ -1,4 +1,4 @@ -// §DSTRESS_DFLAGS§ -version +// __DSTRESS_DFLAGS__ -version module dstress.nocompile.command_line_version_04;
--- a/nocompile/command_line_version_05.d Fri Oct 29 21:04:52 2004 +0000 +++ b/nocompile/command_line_version_05.d Sun Oct 31 21:21:04 2004 +0000 @@ -1,4 +1,4 @@ -// §DSTRESS_DFLAGS§ -version=1A +// __DSTRESS_DFLAGS__ -version=1A module dstress.nocompile.command_line_version_05;
--- a/nocompile/command_line_version_06.d Fri Oct 29 21:04:52 2004 +0000 +++ b/nocompile/command_line_version_06.d Sun Oct 31 21:21:04 2004 +0000 @@ -1,4 +1,4 @@ -// §DSTRESS_DFLAGS§ -version123 +// __DSTRESS_DFLAGS__ -version123 module dstress.nocompile.command_line_version_06;
--- a/nocompile/command_line_version_07.d Fri Oct 29 21:04:52 2004 +0000 +++ b/nocompile/command_line_version_07.d Sun Oct 31 21:21:04 2004 +0000 @@ -1,4 +1,4 @@ -// §DSTRESS_DFLAGS§ -versionabc +// __DSTRESS_DFLAGS__ -versionabc module dstress.nocompile.command_line_version_07;
--- a/nocompile/command_line_version_08.d Fri Oct 29 21:04:52 2004 +0000 +++ b/nocompile/command_line_version_08.d Sun Oct 31 21:21:04 2004 +0000 @@ -1,4 +1,4 @@ -// §DSTRESS_DFLAGS§ -version=X86 -version=AMD64 +// __DSTRESS_DFLAGS__ -version=X86 -version=AMD64 module dstress.nocompile.command_line_version_08;
--- a/nocompile/command_line_version_09.d Fri Oct 29 21:04:52 2004 +0000 +++ b/nocompile/command_line_version_09.d Sun Oct 31 21:21:04 2004 +0000 @@ -1,4 +1,4 @@ -// §DSTRESS_DFLAGS§ -version=linux -version=Windows +// __DSTRESS_DFLAGS__ -version=linux -version=Windows module dstress.nocompile.command_line_version_09;
--- a/nocompile/command_line_version_10.d Fri Oct 29 21:04:52 2004 +0000 +++ b/nocompile/command_line_version_10.d Sun Oct 31 21:21:04 2004 +0000 @@ -1,4 +1,4 @@ -// §DSTRESS_DFLAGS§ -version=none +// __DSTRESS_DFLAGS__ -version=none module dstress.nocompile.command_line_version_10;
--- a/nocompile/command_line_version_12.d Fri Oct 29 21:04:52 2004 +0000 +++ b/nocompile/command_line_version_12.d Sun Oct 31 21:21:04 2004 +0000 @@ -1,4 +1,4 @@ -// §DSTRESS_DFLAGS§ -version=Win32 -version=linux +// __DSTRESS_DFLAGS__ -version=Win32 -version=linux module dstress.nocompile.command_line_version_12;
--- a/nocompile/command_line_version_13.d Fri Oct 29 21:04:52 2004 +0000 +++ b/nocompile/command_line_version_13.d Sun Oct 31 21:21:04 2004 +0000 @@ -1,4 +1,4 @@ -// §DSTRESS_DFLAGS§ -version=Win64 -version=linux +// __DSTRESS_DFLAGS__ -version=Win64 -version=linux module dstress.nocompile.command_line_version_13;
--- a/nocompile/command_line_version_14.d Fri Oct 29 21:04:52 2004 +0000 +++ b/nocompile/command_line_version_14.d Sun Oct 31 21:21:04 2004 +0000 @@ -1,4 +1,4 @@ -// §DSTRESS_DFLAGS§ -version=LittleEndian -version=BigEndian +// __DSTRESS_DFLAGS__ -version=LittleEndian -version=BigEndian module dstress.nocompile.command_line_version_14;
--- a/nocompile/command_line_version_15.d Fri Oct 29 21:04:52 2004 +0000 +++ b/nocompile/command_line_version_15.d Sun Oct 31 21:21:04 2004 +0000 @@ -1,4 +1,4 @@ -// §DSTRESS_DFLAGS§ -version=D_InlineAsm +// __DSTRESS_DFLAGS__ -version=D_InlineAsm module dstress.nocompile.command_line_version_15;
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/length_04.d Sun Oct 31 21:21:04 2004 +0000 @@ -0,0 +1,12 @@ +// @author@ Buchan <kbuchan@xtra.co.nz> +// @date@ 2004-10-18 +// @uri@ news://opsf15ngwe44buww@simon.mshome.net +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:2126 + +module dstress.run.length_04; + +int main(){ + const int[] array = [1, 2, 3]; + assert((array).length==3); + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/opCmp_02.d Sun Oct 31 21:21:04 2004 +0000 @@ -0,0 +1,18 @@ +// @author@ Derek Parnell <derek@psych.ward> +// @date@ 2004-10-12 +// @uri@ news://ckfav3$2gbv$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:2080 + +module dstress.nocompile.opCmp_02; + +struct MyStruct{ +} + +int main(){ + MyStruct a; + MyStruct b; + if(a < b){ + // complain about missing opCmp + } + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/template_05.d Sun Oct 31 21:21:04 2004 +0000 @@ -0,0 +1,30 @@ +// @author@ =?iso-8859-1?q?Knud_S=F8rensen?= <knud@NetRunner.all-technology.com> +// @date@ 2004-05-30 +// @uri@ news://pan.2004.05.30.19.54.44.280109@NetRunner.all-technology.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:329 + +module dstress.nocompile.template_05; + +template pow(x, int n){ + static assert(n>=0); + enum { + pow = pow!(x,n % 2) * pow!(x*x,n/2) + } +} + +template pow(x,int n:1) { + enum{ + pow= x + } +} + +template pow(x,int n:0) { + enum { + pow= 1 + } +} + +int main(){ + pow!(3,4); + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/template_06.d Sun Oct 31 21:21:04 2004 +0000 @@ -0,0 +1,27 @@ +// @author@ Patrick Down <Patrick_member@pathlink.com> +// @date@ 2004-06-20 +// @uri@ news://cb346n$1uk0$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:565 + +module dstress.nocompile.template_06; + +template foo(Type, alias Func){ + int foo(Type t){ + return Func(t); + } +} + +template foo(Type){ + int foo(Type t){ + static int f(Type a){ + return a; + } + return foo!(Type, f)(t); + } +} + +int main(){ + printf("%d\n",foo!(int)(1)); + return 0; +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/version_06.d Sun Oct 31 21:21:04 2004 +0000 @@ -0,0 +1,15 @@ +module dstress.nocompile.version_06; + +version = none; // none: _Never_ defined; used to just disable a section of code + +int main(){ + int check=0; + + version(none){ + check++; + } + + assert(check==0); + + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/version_11.d Sun Oct 31 21:21:04 2004 +0000 @@ -0,0 +1,20 @@ +// check that the compiler feature D_InlineAsm can't be set for a non-supporting compiler + +module dstress.run.version_11; + +int status; + +version(D_InlineAsm){ +}else{ + version = D_InlineAsm; + version(D_InlineAsm){ + static this(){ + status=1; + } + } +} + +int main(){ + assert(status==0); + return 0; +}
--- a/readme.txt Fri Oct 29 21:04:52 2004 +0000 +++ b/readme.txt Sun Oct 31 21:21:04 2004 +0000 @@ -26,9 +26,9 @@ ERROR: test error (compiler, linker or test case segfaulted) Source code comments: - @author@ reporter / author - @date@ year-month-day - @uri@ message id - @url@ message xRef - @WARNING@ external dependencies (e.g. Phobos) - §DSTRESS_FLAGS§ everything following in the same line will be interpreted as _additional_ compiler flags + @author@ reporter / author + @date@ year-month-day + @uri@ message id + @url@ message xRef + @WARNING@ external dependencies (e.g. Phobos) + __DSTRESS_DFLAGS__ everything following in the same line will be interpreted as _additional_ compiler flags
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/alias_12.d Sun Oct 31 21:21:04 2004 +0000 @@ -0,0 +1,20 @@ +// @author@ J C Calvarese <jcc7@cox.net> +// @date@ 2004-06-21 +// @uri@ news://cb7rbq$2qjd$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:572 + +module dstress.run.alias_12; + +int test(){ + return 0; +} + +class StdFile{ + alias test check; +} + +int main(){ + StdFile f = new StdFile(); + f.check(); + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/array_initialization_03.d Sun Oct 31 21:21:04 2004 +0000 @@ -0,0 +1,30 @@ +// @author@ tetsuya <tetsuya_member@pathlink.com> +// @date@ 2004-10-29 +// @uri@ news://cltnob$2qnk$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:2162 + +module dstress.run.array_initialization_03; + +// dmd 1.04, winXP + +template Foo(T, int L){ + T[L] arr; + class Bar { + T[L] arr; + } +} + +void test(){ + alias Foo!(int, 100) foo; + foreach (int x; foo.arr) + assert(x == int.init); // initialized, no problem + + foo.Bar bar = new foo.Bar(); + foreach (int x; bar.arr) + assert(x == int.init); // not initialized, fails +} + +int main(){ + test(); + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/break_01.d Sun Oct 31 21:21:04 2004 +0000 @@ -0,0 +1,21 @@ +// @author@ John Reimer <brk_6502@NO_SPA_M.yahoo.com> +// @date@ 2004-07-11 +// @uri@ news://cct6f0$cj6$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:783 + +module dstress.run.break_01; + +int main() { + while (true) { + try { + if (true){ + break; + }else{ + assert(0); + } + } catch (Object e) { + } + assert(0); + } + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/break_02.d Sun Oct 31 21:21:04 2004 +0000 @@ -0,0 +1,22 @@ +// @author@ John Reimer <brk_6502@NO_SPA_M.yahoo.com> +// @date@ 2004-07-11 +// @uri@ news://cct6f0$cj6$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:783 + +module dstress.run.break_02; + +int main() { + while (true) { + try { + throw new Object(); + } catch (Object e) { + if(true){ + break; + }else{ + assert(0); + } + } + assert(0); + } + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/bug_mtype_2576.d Sun Oct 31 21:21:04 2004 +0000 @@ -0,0 +1,35 @@ +// @author@ J Anderson <REMOVEanderson@badmama.com.au> +// @date@ 2004-05-18 +// @uri@ news://c8c0uk$229r$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:205 + +module dstress.run.bug_mtype_2576; + +struct Standard +{ + + struct NodeLeaf(NodeInfo, LeafInfo) + { + struct Node + { + NodeInfo info; + } + + struct Leaf + { + LeafInfo info; + } + + } + +} + +struct NodeInfo { } +struct LeafInfo { } + +alias Standard.NodeLeaf!(NodeInfo, LeafInfo).Node Node; + +int main( char[][] args ){ + return 0; +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/class_06.d Sun Oct 31 21:21:04 2004 +0000 @@ -0,0 +1,27 @@ +// @author@ heretic <heretic_member@pathlink.com> +// @date@ 2004-07-09 +// @uri@ news://ccl6ao$vd3$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:752 + +module dstress.run.class_06; + +void func1(){ + class foo { + public int a; + } +} + +void func2(){ + class foo { + public int b; + } + + foo bar = new foo(); + bar.b = 255; // error no property 'b' for type 'foo' +} + +int main(){ + func2(); + return 0; +} +
--- a/run/command_line_debug_01.d Fri Oct 29 21:04:52 2004 +0000 +++ b/run/command_line_debug_01.d Sun Oct 31 21:21:04 2004 +0000 @@ -1,4 +1,4 @@ -// §DSTRESS_FLAGS§ -debug +// __DSTRESS_DFLAGS__ -debug module stress.run.command_line_debug_01;
--- a/run/command_line_debug_02.d Fri Oct 29 21:04:52 2004 +0000 +++ b/run/command_line_debug_02.d Sun Oct 31 21:21:04 2004 +0000 @@ -1,4 +1,4 @@ -// §DSTRESS_FLAGS§ -debug=1 +// __DSTRESS_DFLAGS__ -debug=1 module stress.run.command_line_debug_02;
--- a/run/command_line_debug_03.d Fri Oct 29 21:04:52 2004 +0000 +++ b/run/command_line_debug_03.d Sun Oct 31 21:21:04 2004 +0000 @@ -1,4 +1,4 @@ -// §DSTRESS_FLAGS§ -debug=abc +// __DSTRESS_DFLAGS__ -debug=abc module stress.run.command_line_debug_03;
--- a/run/command_line_debug_04.d Fri Oct 29 21:04:52 2004 +0000 +++ b/run/command_line_debug_04.d Sun Oct 31 21:21:04 2004 +0000 @@ -1,4 +1,4 @@ -// §DSTRESS_FLAGS§ -debug=123456789 +// __DSTRESS_DFLAGS__ -debug=123456789 module stress.run.command_line_debug_04;
--- a/run/command_line_debug_08.d Fri Oct 29 21:04:52 2004 +0000 +++ b/run/command_line_debug_08.d Sun Oct 31 21:21:04 2004 +0000 @@ -1,9 +1,9 @@ -// §DSTRESS_FLAGS§ -debug=A1 +// __DSTRESS_DFLAGS__ -debug=A1 module stress.run.command_line_debug_08; int main(){ - version(A1){ + debug(A1){ return 0; }else{ static assert(0);
--- a/run/command_line_version_01.d Fri Oct 29 21:04:52 2004 +0000 +++ b/run/command_line_version_01.d Sun Oct 31 21:21:04 2004 +0000 @@ -1,4 +1,4 @@ -// §DSTRESS_FLAGS§ -version=abc +// __DSTRESS_DFLAGS__ -version=abc module dstress.run.command_line_version_01;
--- a/run/command_line_version_02.d Fri Oct 29 21:04:52 2004 +0000 +++ b/run/command_line_version_02.d Sun Oct 31 21:21:04 2004 +0000 @@ -1,4 +1,4 @@ -// §DSTRESS_FLAGS§ -version=123 +// __DSTRESS_DFLAGS__ -version=123 module dstress.run.command_line_version_02;
--- a/run/command_line_version_03.d Fri Oct 29 21:04:52 2004 +0000 +++ b/run/command_line_version_03.d Sun Oct 31 21:21:04 2004 +0000 @@ -1,4 +1,4 @@ -// §DSTRESS_FLAGS§ -version=A2 +// __DSTRESS_DFLAGS__ -version=A2 module dstress.run.command_line_version_03;
--- a/run/constructor_02.d Fri Oct 29 21:04:52 2004 +0000 +++ b/run/constructor_02.d Sun Oct 31 21:21:04 2004 +0000 @@ -24,7 +24,7 @@ assert(status==0); MyClass object = new MyClass(); assert(status==2); - object = new MyObject(3); + object = new MyClass(3); assert(status==5); return 0; }
--- a/run/debug_01.d Fri Oct 29 21:04:52 2004 +0000 +++ b/run/debug_01.d Sun Oct 31 21:21:04 2004 +0000 @@ -1,4 +1,4 @@ -// §DSTRESS_FLAGS§ -debug +// __DSTRESS_DFLAGS__ -debug module dstress.run.debug_01;
--- a/run/debug_02.d Fri Oct 29 21:04:52 2004 +0000 +++ b/run/debug_02.d Sun Oct 31 21:21:04 2004 +0000 @@ -3,7 +3,7 @@ // @uri@ news://ckro4i$1b4l$2@digitaldaemon.com // @url@ nttp://digitalmars.com/digitalmars.D.bugs:2119 -// §DSTRESS_FLAGS§ -debug=2 +// __DSTRESS_DFLAGS__ -debug=2 module dstress.run.debug_02; @@ -11,15 +11,15 @@ int i=0; assert(i==0); debug(1){ - assert(0); + i++; + assert(i==1); } debug(2){ i++; - assert(i==1); + assert(i==2); } debug(3){ - i++; - assert(i==2); + assert(0); } assert(i==2); return 0;
--- a/run/debug_03.d Fri Oct 29 21:04:52 2004 +0000 +++ b/run/debug_03.d Sun Oct 31 21:21:04 2004 +0000 @@ -1,4 +1,4 @@ -// §DSTRESS_FLAGS§ -debug=a +// __DSTRESS_DFLAGS__ -debug=a module dstress.run.debug_03;
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/deprecated_13.d Sun Oct 31 21:21:04 2004 +0000 @@ -0,0 +1,10 @@ +// __DSTRESS_DFLAGS__ -d + +module dstress.run.deprecated_13; + +int a = 2; +deprecated alias a b; + +int main(){ + return b-2; +}
--- a/run/length_04.d Fri Oct 29 21:04:52 2004 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,12 +0,0 @@ -// @author@ Buchan <kbuchan@xtra.co.nz> -// @date@ 2004-10-18 -// @uri@ news://opsf15ngwe44buww@simon.mshome.net -// @url@ nttp://digitalmars.com/digitalmars.D.bugs:2126 - -module dstress.run.length_04; - -int main(){ - const int[] array = [1, 2, 3]; - assert((array).length==3); - return 0; -}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/nested_function_01.d Sun Oct 31 21:21:04 2004 +0000 @@ -0,0 +1,24 @@ +// @author@ Charlie <Charlie_member@pathlink.com> +// @date@ 2004-07-17 +// @uri@ news://casnln$1oe1$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:551 + +module dstress.run.nested_function_01; + +void fn( out char[] buf ){ + void fn2(){ + assert(buf.length==0); + assert(buf.sizeof==8); + } + fn2(); + assert(buf.length==0); + assert(buf.sizeof==8); +} + +int main(){ + char[] buf; + assert(buf.length==0); + assert(buf.sizeof==8); + fn( buf ); + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/nested_function_02.d Sun Oct 31 21:21:04 2004 +0000 @@ -0,0 +1,26 @@ +// @author@ Charlie <Charlie_member@pathlink.com> +// @date@ 2004-07-17 +// @uri@ news://casnln$1oe1$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:551 + +// __DSTRESS_DFLAGS__ -inline + +module dstress.run.nested_function_02; + +void fn( out char[] buf ){ + void fn2(){ + assert(buf.length==0); + assert(buf.sizeof==8); + } + fn2(); + assert(buf.length==0); + assert(buf.sizeof==8); +} + +int main(){ + char[] buf; + assert(buf.length==0); + assert(buf.sizeof==8); + fn( buf ); + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/nested_function_03.d Sun Oct 31 21:21:04 2004 +0000 @@ -0,0 +1,24 @@ +// @author@ Charlie <Charlie_member@pathlink.com> +// @date@ 2004-07-17 +// @uri@ news://casnln$1oe1$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:551 + +module dstress.run.nested_function_03; + +void fn( in char[] buf ){ + void fn2(){ + assert(buf.length==0); + assert(buf.sizeof==8); + } + fn2(); + assert(buf.length==0); + assert(buf.sizeof==8); +} + +int main(){ + char[] buf; + assert(buf.length==0); + assert(buf.sizeof==8); + fn( buf ); + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/nested_function_04.d Sun Oct 31 21:21:04 2004 +0000 @@ -0,0 +1,24 @@ +// @author@ Charlie <Charlie_member@pathlink.com> +// @date@ 2004-07-17 +// @uri@ news://casnln$1oe1$1@digitaldaemon.com +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:551 + +module dstress.run.nested_function_04; + +void fn( inout char[] buf ){ + void fn2(){ + assert(buf.length==0); + assert(buf.sizeof==8); + } + fn2(); + assert(buf.length==0); + assert(buf.sizeof==8); +} + +int main(){ + char[] buf; + assert(buf.length==0); + assert(buf.sizeof==8); + fn( buf ); + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/struct_14.d Sun Oct 31 21:21:04 2004 +0000 @@ -0,0 +1,29 @@ +// @author@ shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> +// @date@ 2004-10-30 +// @uri@ news://20041030030623.0497f385.s31552@mail.ecc.u-tokyo.ac.jp +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:2163 + +module dstress.run.struct_14; + +struct MyStruct { + ubyte a, b, c, d; +} + +void check(MyStruct s) { + assert(s.a==1); + assert(s.b==2); + assert(s.c==3); + assert(s.d==4); +} + +int main() { + for (int i = 0; i < 1; i++) { + MyStruct s; + s.a = 1; + s.b = 2; + s.c = 3; + s.d = 4; + check(s); + } + return 0; +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/struct_15.d Sun Oct 31 21:21:04 2004 +0000 @@ -0,0 +1,31 @@ +// @author@ shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> +// @date@ 2004-10-30 +// @uri@ news://20041030030623.0497f385.s31552@mail.ecc.u-tokyo.ac.jp +// @url@ nttp://digitalmars.com/digitalmars.D.bugs:2163 + +// __DSTRESS_DFLAGS__ -O + +module dstress.run.struct_15; + +struct MyStruct { + ubyte a, b, c, d; +} + +void check(MyStruct s) { + assert(s.a==1); + assert(s.b==2); + assert(s.c==3); + assert(s.d==4); +} + +int main() { + for (int i = 0; i < 1; i++) { + MyStruct s; + s.a = 1; + s.b = 2; + s.c = 3; + s.d = 4; + check(s); + } + return 0; +}
--- a/run/unittest_01.d Fri Oct 29 21:04:52 2004 +0000 +++ b/run/unittest_01.d Sun Oct 31 21:21:04 2004 +0000 @@ -1,4 +1,4 @@ -// §DSTRESS_FLAGS§ -unittest +// __DSTRESS_DFLAGS__ -unittest module dstress.run.unittest_01;
--- a/run/version_06.d Fri Oct 29 21:04:52 2004 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,14 +0,0 @@ - -version = none; // none: _Never_ defined; used to just disable a section of code - -int main(){ - int check=0; - - version(none){ - check++; - } - - assert(check==0); - - return 0; -}
--- a/run/version_11.d Fri Oct 29 21:04:52 2004 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,20 +0,0 @@ -// check that the compiler feature D_InlineAsm can't be set for a non-supporting compiler - -module dstress.run.version_11; - -int status; - -version(D_InlineAsm){ -}else{ - version = D_InlineAsm; - version(D_InlineAsm){ - static this(){ - status=1; - } - } -} - -int main(){ - assert(status==0); - return 0; -}