Mercurial > projects > dstress
changeset 678:f9e1d827a255
div. fixes
author | thomask |
---|---|
date | Wed, 21 Sep 2005 21:15:30 +0000 |
parents | c566f5dba4b4 |
children | 8907387e7a6a |
files | nocompile/v/void_02_C.d nocompile/v/void_02_D.d run/a/asm_cdq_01.d run/a/asm_cwde_01.d run/a/asm_movsx_01_B.d run/bug_20041226_A.d run/bug_20041226_B.d run/bug_20041226_C.d run/bug_20041226_D.d run/bug_20041226_E.d run/i/inline_12_A.d run/i/inline_12_B.d run/i/inline_12_C.d run/mixin_09.d |
diffstat | 14 files changed, 46 insertions(+), 67 deletions(-) [+] |
line wrap: on
line diff
--- a/nocompile/v/void_02_C.d Tue Sep 20 09:01:37 2005 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -// $HeadURL$ -// $Date$ -// $Author$ - -// @author@ zwang <nehzgnaw@gmail.com> -// @date@ 2005-09-20 -// @uri@ news:dgoa9j$bsv$1@digitaldaemon.com - -// __DSTRESS_ELINE__ 14 - -module dstress.nocompile.v.void_02_C; - -void main(){ - void[1] v; -} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/v/void_02_D.d Wed Sep 21 21:15:30 2005 +0000 @@ -0,0 +1,15 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ zwang <nehzgnaw@gmail.com> +// @date@ 2005-09-20 +// @uri@ news:dgoa9j$bsv$1@digitaldaemon.com + +// __DSTRESS_ELINE__ 14 + +module dstress.nocompile.v.void_02_C; + +void main(){ + void[1] v; +} \ No newline at end of file
--- a/run/a/asm_cdq_01.d Tue Sep 20 09:01:37 2005 +0000 +++ b/run/a/asm_cdq_01.d Wed Sep 21 21:15:30 2005 +0000 @@ -4,8 +4,6 @@ module dstress.run.a.asm_cdq_01; -import std.stdio; - int main(){ version(D_InlineAsm){ int x = -128; @@ -28,4 +26,5 @@ pragma(msg, "no Inline asm support"); static assert(0); } -} \ No newline at end of file +} +
--- a/run/a/asm_cwde_01.d Tue Sep 20 09:01:37 2005 +0000 +++ b/run/a/asm_cwde_01.d Wed Sep 21 21:15:30 2005 +0000 @@ -4,8 +4,6 @@ module dstress.run.a.asm_cwde_01; -import std.stdio; - int main(){ version(D_InlineAsm){ uint i=0x12_3F_FF_FFu; @@ -29,3 +27,4 @@ static assert(0); } } +
--- a/run/a/asm_movsx_01_B.d Tue Sep 20 09:01:37 2005 +0000 +++ b/run/a/asm_movsx_01_B.d Wed Sep 21 21:15:30 2005 +0000 @@ -4,8 +4,6 @@ module dstress.run.a.asm_movsx_01_B; -import std.stdio; - int main(){ version(D_InlineAsm){ uint i=0x12_3F_FF_FFu; @@ -27,4 +25,5 @@ pragma(msg, "no Inline asm support"); static assert(0); } -} \ No newline at end of file +} +
--- a/run/bug_20041226_A.d Tue Sep 20 09:01:37 2005 +0000 +++ b/run/bug_20041226_A.d Wed Sep 21 21:15:30 2005 +0000 @@ -11,11 +11,7 @@ module dstress.run.bug_20041226_A; -version(none){ - import std.stdio; -}else{ - void writefln(...){ - } +void dummy(...){ } struct vec3{ @@ -70,12 +66,13 @@ AseLoader al = new AseLoader; foreach(GeomObject go; al.geomObjects){ - writefln("processing ", go.name); + dummy("processing ", go.name); extractTriangles(go); } }catch(Object err){ - writefln("Exception caught:", err); + dummy("Exception caught:", err); } return 0; } +
--- a/run/bug_20041226_B.d Tue Sep 20 09:01:37 2005 +0000 +++ b/run/bug_20041226_B.d Wed Sep 21 21:15:30 2005 +0000 @@ -11,11 +11,7 @@ module dstress.run.bug_20041226_B; -version(none){ - import std.stdio; -}else{ - void writefln(...){ - } +void dummy(...){ } struct vec3{ @@ -53,7 +49,7 @@ void extractTriangles(GeomObject geomObj){ void foobar(){ try{ - writefln("name: ", geomObj.name); + dummy("name: ", geomObj.name); return; // avoid accessing the array with 0 elements in the next line geomObj.mesh.faces[0].a - geomObj.xlate; // when this line is removed, the bug doesn't appear @@ -70,12 +66,13 @@ AseLoader al = new AseLoader; foreach(GeomObject go; al.geomObjects){ - writefln("processing ", go.name); + dummy("processing ", go.name); extractTriangles(go); } }catch(Object err){ - writefln("Exception caught:", err); + dummy("Exception caught:", err); } return 0; } +
--- a/run/bug_20041226_C.d Tue Sep 20 09:01:37 2005 +0000 +++ b/run/bug_20041226_C.d Wed Sep 21 21:15:30 2005 +0000 @@ -9,11 +9,7 @@ module dstress.run.bug_20041226_C; -version(none){ - import std.stdio; -}else{ - void writefln(...){ - } +void dummy(...){ } struct vec3{ @@ -51,7 +47,7 @@ void extractTriangles(GeomObject geomObj){ void foobar(){ try{ - writefln("name: ", geomObj.name); + dummy("name: ", geomObj.name); return; // avoid accessing the array with 0 elements in the next line geomObj.mesh.faces[0].a - geomObj.xlate; // when this line is removed, the bug doesn't appear @@ -68,12 +64,13 @@ AseLoader al = new AseLoader; foreach(GeomObject go; al.geomObjects){ - writefln("processing ", go.name); + dummy("processing ", go.name); extractTriangles(go); } }catch(Object err){ - writefln("Exception caught:", err); + dummy("Exception caught:", err); } return 0; } +
--- a/run/bug_20041226_D.d Tue Sep 20 09:01:37 2005 +0000 +++ b/run/bug_20041226_D.d Wed Sep 21 21:15:30 2005 +0000 @@ -11,11 +11,7 @@ module dstress.run.bug_20041226_D; -version(none){ - import std.stdio; -}else{ - void writefln(...){ - } +void dummy(...){ } struct vec3{ @@ -52,7 +48,7 @@ void extractTriangles(GeomObject geomObj){ void foobar(){ - writefln("name: ", geomObj.name); + dummy("name: ", geomObj.name); return; // avoid accessing the array with 0 elements in the next line geomObj.mesh.faces[0].a - geomObj.xlate; // when this line is removed, the bug doesn't appear @@ -66,12 +62,13 @@ AseLoader al = new AseLoader; foreach(GeomObject go; al.geomObjects){ - writefln("processing ", go.name); + dummy("processing ", go.name); extractTriangles(go); } }catch(Object err){ - writefln("Exception caught:", err); + dummy("Exception caught:", err); } return 0; } +
--- a/run/bug_20041226_E.d Tue Sep 20 09:01:37 2005 +0000 +++ b/run/bug_20041226_E.d Wed Sep 21 21:15:30 2005 +0000 @@ -11,11 +11,7 @@ module dstress.run.bug_20041226_E; -version(none){ - import std.stdio; -}else{ - void writefln(...){ - } +void dummy(...){ } struct vec3{ @@ -53,7 +49,7 @@ void extractTriangles(GeomObject geomObj){ void foobar(){ try{ - writefln("name: ", geomObj.name); + dummy("name: ", geomObj.name); return; }catch(Object err){ @@ -69,12 +65,13 @@ AseLoader al = new AseLoader; foreach(GeomObject go; al.geomObjects){ - writefln("processing ", go.name); + dummy("processing ", go.name); extractTriangles(go); } }catch(Object err){ - writefln("Exception caught:", err); + dummy("Exception caught:", err); } return 0; } +
--- a/run/i/inline_12_A.d Tue Sep 20 09:01:37 2005 +0000 +++ b/run/i/inline_12_A.d Wed Sep 21 21:15:30 2005 +0000 @@ -25,7 +25,6 @@ } } -import std.stdio; int main(){ Struct s; assert(s * 1 == 2);
--- a/run/i/inline_12_B.d Tue Sep 20 09:01:37 2005 +0000 +++ b/run/i/inline_12_B.d Wed Sep 21 21:15:30 2005 +0000 @@ -27,7 +27,6 @@ } } -import std.stdio; int main(){ Struct s; assert(s * 1 == 2);
--- a/run/i/inline_12_C.d Tue Sep 20 09:01:37 2005 +0000 +++ b/run/i/inline_12_C.d Wed Sep 21 21:15:30 2005 +0000 @@ -23,7 +23,6 @@ } } -import std.stdio; int main(){ Struct s; assert(s * 1 == 2);
--- a/run/mixin_09.d Tue Sep 20 09:01:37 2005 +0000 +++ b/run/mixin_09.d Wed Sep 21 21:15:30 2005 +0000 @@ -8,7 +8,7 @@ module dstress.run.mixin_09; -void writefln(...){ +void dummy(...){ } class A { @@ -16,7 +16,7 @@ { this(Type[] arr) { - foreach(Type v; arr) writefln(typeid(typeof(v))); + foreach(Type v; arr) dummy(typeid(typeof(v))); } }