Mercurial > projects > dstress
changeset 452:8c1ae5dd51b0
fixed test cases(names)
line wrap: on
line diff
--- a/nocompile/abstract_08.d Tue Apr 19 04:05:27 2005 +0000 +++ b/nocompile/abstract_08.d Tue Apr 19 11:40:22 2005 +0000 @@ -7,13 +7,12 @@ // @uri@ news:cj0qf6$2u2v$1@digitaldaemon.com // @url@ nntp://news.digitalmars.com/digitalmars.D.bugs/1940 -// __DSTRESS__ELINE__ 20 +// __DSTRESS__ELINE__ 19 module dstress.nocompile.abstract_08; class A{ - abstract void test(){ - } + abstract void test(); } int main(){
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/abstract_13.d Tue Apr 19 11:40:22 2005 +0000 @@ -0,0 +1,18 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Stewart Gordon +// @date@ 2004-09-24 +// @uri@ news:cj0qf6$2u2v$1@digitaldaemon.com +// @url@ nntp://news.digitalmars.com/digitalmars.D.bugs/1940 + +// __DSTRESS__ELINE__ 15 + +module dstress.nocompile.abstract_13; + +class A{ + abstract void test(){ + } +} +
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nocompile/bounds_checking_05.d Tue Apr 19 11:40:22 2005 +0000 @@ -0,0 +1,15 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// __DSTRESS_ELINE__ 11 + +module dstress.nocompile.bounds_checking_05; + +int main(){ + byte[5] a; + const int i=100; + a[i]=3; + + return 0; +}
--- a/norun/destructor_04.d Tue Apr 19 04:05:27 2005 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -// $HeadURL$ -// $Date$ -// $Author$ - -// __DSTRESS_ELINE__ 10 - -module dstress.norun.destructor_04; - -static ~this(){ - assert(0); -} - -int main(){ - return 0; -}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/norun/destructor_05.d Tue Apr 19 11:40:22 2005 +0000 @@ -0,0 +1,15 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// __DSTRESS_ELINE__ 10 + +module dstress.norun.destructor_05; + +static ~this(){ + assert(0); +} + +int main(){ + return 0; +}
--- a/run/opPostDec_01.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPostDec_01.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos +module dstress.run.opPostDec_01; -module dstress.run.opPostInc_01; - -import std.stdio; +void dummy(...){ +} int main() { byte x = 9; - writefln(x); - writefln(x--); + dummy(x); + int y=x--; + assert(y==9); assert(x==8); return 0; }
--- a/run/opPostDec_02.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPostDec_02.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos +module dstress.run.opPostDec_02; -module dstress.run.opPostInc_02; - -import std.stdio; +void dummy(...){ +} int main() { ubyte x = 9; - writefln(x); - writefln(x--); + dummy(x); + int y=x--; + assert(y==9); assert(x==8); return 0; }
--- a/run/opPostDec_03.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPostDec_03.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos +module dstress.run.opPostDec_03; -module dstress.run.opPostInc_03; - -import std.stdio; +void dummy(...){ +} int main() { short x = 9; - writefln(x); - writefln(x--); + dummy(x); + int y=x--; + assert(y==9); assert(x==8); return 0; }
--- a/run/opPostDec_04.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPostDec_04.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos +module dstress.run.opPostDec_04; -module dstress.run.opPostInc_04; - -import std.stdio; +void dummy(...){ +} int main() { ushort x = 9; - writefln(x); - writefln(x--); + dummy(x); + int y=x--; + assert(y==9); assert(x==8); return 0; }
--- a/run/opPostDec_05.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPostDec_05.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos +module dstress.run.opPostDec_05; -module dstress.run.opPostInc_05; - -import std.stdio; +void dummy(...){ +} int main() { int x = 9; - writefln(x); - writefln(x--); + dummy(x); + int y=x--; + assert(y==9); assert(x==8); return 0; }
--- a/run/opPostDec_06.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPostDec_06.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos +module dstress.run.opPostDec_06; -module dstress.run.opPostInc_06; - -import std.stdio; +void dummy(...){ +} int main() { uint x = 9; - writefln(x); - writefln(x--); + dummy(x); + int y=x--; + assert(y==9); assert(x==8); return 0; }
--- a/run/opPostDec_07.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPostDec_07.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,17 +6,17 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos +module dstress.run.opPostDec_07; -module dstress.run.opPostInc_07; - -import std.stdio; +void dummy(...){ +} int main() { - long x = 9l; - writefln(x); - writefln(x--); - assert(x==8l); + long x = 9; + dummy(x); + int y=x--; + assert(y==9); + assert(x==8); return 0; }
--- a/run/opPostDec_08.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPostDec_08.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,17 +6,17 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos +module dstress.run.opPostDec_08; -module dstress.run.opPostInc_08; - -import std.stdio; +void dummy(...){ +} int main() { - ulong x = 9l; - writefln(x); - writefln(x--); - assert(x==8l); + ulong x = 9; + dummy(x); + int y=x--; + assert(y==9); + assert(x==8); return 0; }
--- a/run/opPostDec_09.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPostDec_09.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos +module dstress.run.opPostDec_09; -module dstress.run.opPostInc_09; - -import std.stdio; +void dummy(...){ +} int main() { float x = 9f; - writefln(x); - writefln(x--); + dummy(x); + float y=x--; + assert(y==9f); assert(x==8f); return 0; }
--- a/run/opPostDec_10.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPostDec_10.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos +module dstress.run.opPostDec_10; -module dstress.run.opPostInc_10; - -import std.stdio; +void dummy(...){ +} int main() { double x = 9; - writefln(x); - writefln(x--); + dummy(x); + double y=x--; + assert(y==9); assert(x==8); return 0; }
--- a/run/opPostDec_11.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPostDec_11.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos +module dstress.run.opPostDec_11; -module dstress.run.opPostInc_11; - -import std.stdio; +void dummy(...){ +} int main() { - real x = 9l; - writefln(x); - writefln(x--); + real x = 9; + dummy(x); + real y=x--; + assert(y==9l); assert(x==8l); return 0; }
--- a/run/opPostInc_01.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPostInc_01.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos - module dstress.run.opPostInc_01; -import std.stdio; +void dummy(...){ +} int main() { byte x = 9; - writefln(x); - writefln(x++); + dummy(x); + int y=x++; + assert(y==9); assert(x==10); return 0; }
--- a/run/opPostInc_02.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPostInc_02.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos - module dstress.run.opPostInc_02; -import std.stdio; +void dummy(...){ +} int main() { ubyte x = 9; - writefln(x); - writefln(x++); + dummy(x); + int y=x++; + assert(y==9); assert(x==10); return 0; }
--- a/run/opPostInc_03.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPostInc_03.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos - module dstress.run.opPostInc_03; -import std.stdio; +void dummy(...){ +} int main() { short x = 9; - writefln(x); - writefln(x++); + dummy(x); + int y=x++; + assert(y==9); assert(x==10); return 0; }
--- a/run/opPostInc_04.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPostInc_04.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos - module dstress.run.opPostInc_04; -import std.stdio; +void dummy(...){ +} int main() { ushort x = 9; - writefln(x); - writefln(x++); + dummy(x); + int y=x++; + assert(y==9); assert(x==10); return 0; }
--- a/run/opPostInc_05.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPostInc_05.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos - module dstress.run.opPostInc_05; -import std.stdio; +void dummy(...){ +} int main() { int x = 9; - writefln(x); - writefln(x++); + dummy(x); + int y=x++; + assert(y==9); assert(x==10); return 0; }
--- a/run/opPostInc_06.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPostInc_06.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos - module dstress.run.opPostInc_06; -import std.stdio; +void dummy(...){ +} int main() { uint x = 9; - writefln(x); - writefln(x++); + dummy(x); + int y=x++; + assert(y==9); assert(x==10); return 0; }
--- a/run/opPostInc_07.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPostInc_07.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,17 +6,17 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos - module dstress.run.opPostInc_07; -import std.stdio; +void dummy(...){ +} int main() { - long x = 9l; - writefln(x); - writefln(x++); - assert(x==10l); + long x = 9; + dummy(x); + int y=x++; + assert(y==9); + assert(x==10); return 0; }
--- a/run/opPostInc_08.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPostInc_08.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,17 +6,17 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos - module dstress.run.opPostInc_08; -import std.stdio; +void dummy(...){ +} int main() { - ulong x = 9l; - writefln(x); - writefln(x++); - assert(x==10l); + ulong x = 9; + dummy(x); + int y=x++; + assert(y==9); + assert(x==10); return 0; }
--- a/run/opPostInc_09.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPostInc_09.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos - module dstress.run.opPostInc_09; -import std.stdio; +void dummy(...){ +} int main() { float x = 9f; - writefln(x); - writefln(x++); + dummy(x); + float y=x++; + assert(y==9f); assert(x==10f); return 0; }
--- a/run/opPostInc_10.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPostInc_10.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos - module dstress.run.opPostInc_10; -import std.stdio; +void dummy(...){ +} int main() { double x = 9; - writefln(x); - writefln(x++); + dummy(x); + double y=x++; + assert(y==9); assert(x==10); return 0; }
--- a/run/opPostInc_11.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPostInc_11.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos - module dstress.run.opPostInc_11; -import std.stdio; +void dummy(...){ +} int main() { - real x = 9l; - writefln(x); - writefln(x++); + real x = 9; + dummy(x); + real y=x++; + assert(y==9l); assert(x==10l); return 0; }
--- a/run/opPreDec_01.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPreDec_01.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos +module dstress.run.opPreDec_01; -module dstress.run.opPreInc_01; - -import std.stdio; +void dummy(...){ +} int main() { byte x = 9; - writefln(x); - writefln(--x); + dummy(x); + int y=--x; + assert(y==8); assert(x==8); return 0; }
--- a/run/opPreDec_02.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPreDec_02.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos +module dstress.run.opPreDec_02; -module dstress.run.opPreInc_02; - -import std.stdio; +void dummy(...){ +} int main() { ubyte x = 9; - writefln(x); - writefln(--x); + dummy(x); + int y=--x; + assert(y==8); assert(x==8); return 0; }
--- a/run/opPreDec_03.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPreDec_03.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos +module dstress.run.opPreDec_03; -module dstress.run.opPreInc_03; - -import std.stdio; +void dummy(...){ +} int main() { short x = 9; - writefln(x); - writefln(--x); + dummy(x); + int y=--x; + assert(y==8); assert(x==8); return 0; }
--- a/run/opPreDec_04.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPreDec_04.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos +module dstress.run.opPreDec_04; -module dstress.run.opPreInc_04; - -import std.stdio; +void dummy(...){ +} int main() { ushort x = 9; - writefln(x); - writefln(--x); + dummy(x); + int y=--x; + assert(y==8); assert(x==8); return 0; }
--- a/run/opPreDec_05.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPreDec_05.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos +module dstress.run.opPreDec_05; -module dstress.run.opPreInc_05; - -import std.stdio; +void dummy(...){ +} int main() { int x = 9; - writefln(x); - writefln(--x); + dummy(x); + int y=--x; + assert(y==8); assert(x==8); return 0; }
--- a/run/opPreDec_06.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPreDec_06.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos +module dstress.run.opPreDec_06; -module dstress.run.opPreInc_06; - -import std.stdio; +void dummy(...){ +} int main() { uint x = 9; - writefln(x); - writefln(--x); + dummy(x); + int y=--x; + assert(y==8); assert(x==8); return 0; }
--- a/run/opPreDec_07.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPreDec_07.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,17 +6,17 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos +module dstress.run.opPreDec_07; -module dstress.run.opPreInc_07; - -import std.stdio; +void dummy(...){ +} int main() { - long x = 9l; - writefln(x); - writefln(--x); - assert(x==8l); + long x = 9; + dummy(x); + int y=--x; + assert(y==8); + assert(x==8); return 0; }
--- a/run/opPreDec_08.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPreDec_08.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,17 +6,17 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos +module dstress.run.opPreDec_08; -module dstress.run.opPreInc_08; - -import std.stdio; +void dummy(...){ +} int main() { - ulong x = 9l; - writefln(x); - writefln(--x); - assert(x==8l); + ulong x = 9; + dummy(x); + int y=--x; + assert(y==8); + assert(x==8); return 0; }
--- a/run/opPreDec_09.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPreDec_09.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos +module dstress.run.opPreDec_09; -module dstress.run.opPreInc_09; - -import std.stdio; +void dummy(...){ +} int main() { float x = 9f; - writefln(x); - writefln(--x); + dummy(x); + float y=--x; + assert(y==8f); assert(x==8f); return 0; }
--- a/run/opPreDec_10.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPreDec_10.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos +module dstress.run.opPreDec_10; -module dstress.run.opPreInc_10; - -import std.stdio; +void dummy(...){ +} int main() { double x = 9; - writefln(x); - writefln(--x); + dummy(x); + double y=--x; + assert(y==8); assert(x==8); return 0; }
--- a/run/opPreDec_11.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPreDec_11.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos +module dstress.run.opPreDec_11; -module dstress.run.opPreInc_11; - -import std.stdio; +void dummy(...){ +} int main() { real x = 9l; - writefln(x); - writefln(--x); + dummy(x); + real y=--x; + assert(y==8l); assert(x==8l); return 0; }
--- a/run/opPreInc_01.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPreInc_01.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos - module dstress.run.opPreInc_01; -import std.stdio; +void dummy(...){ +} int main() { byte x = 9; - writefln(x); - writefln(++x); + dummy(x); + int y=++x; + assert(y==10); assert(x==10); return 0; }
--- a/run/opPreInc_02.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPreInc_02.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos - module dstress.run.opPreInc_02; -import std.stdio; +void dummy(...){ +} int main() { ubyte x = 9; - writefln(x); - writefln(++x); + dummy(x); + int y=++x; + assert(y==10); assert(x==10); return 0; }
--- a/run/opPreInc_03.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPreInc_03.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos - module dstress.run.opPreInc_03; -import std.stdio; +void dummy(...){ +} int main() { short x = 9; - writefln(x); - writefln(++x); + dummy(x); + int y=++x; + assert(y==10); assert(x==10); return 0; }
--- a/run/opPreInc_04.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPreInc_04.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos - module dstress.run.opPreInc_04; -import std.stdio; +void dummy(...){ +} int main() { ushort x = 9; - writefln(x); - writefln(++x); + dummy(x); + int y=++x; + assert(y==10); assert(x==10); return 0; }
--- a/run/opPreInc_05.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPreInc_05.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos - module dstress.run.opPreInc_05; -import std.stdio; +void dummy(...){ +} int main() { int x = 9; - writefln(x); - writefln(++x); + dummy(x); + int y=++x; + assert(y==10); assert(x==10); return 0; }
--- a/run/opPreInc_06.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPreInc_06.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos - module dstress.run.opPreInc_06; -import std.stdio; +void dummy(...){ +} int main() { uint x = 9; - writefln(x); - writefln(++x); + dummy(x); + int y=++x; + assert(y==10); assert(x==10); return 0; }
--- a/run/opPreInc_07.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPreInc_07.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,17 +6,17 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos - module dstress.run.opPreInc_07; -import std.stdio; +void dummy(...){ +} int main() { - long x = 9l; - writefln(x); - writefln(++x); - assert(x==10l); + long x = 9; + dummy(x); + int y=++x; + assert(y==10); + assert(x==10); return 0; }
--- a/run/opPreInc_08.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPreInc_08.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,17 +6,17 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos - module dstress.run.opPreInc_08; -import std.stdio; +void dummy(...){ +} int main() { - ulong x = 9l; - writefln(x); - writefln(++x); - assert(x==10l); + ulong x = 9; + dummy(x); + int y=++x; + assert(y==10); + assert(x==10); return 0; }
--- a/run/opPreInc_09.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPreInc_09.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos - module dstress.run.opPreInc_09; -import std.stdio; +void dummy(...){ +} int main() { float x = 9f; - writefln(x); - writefln(++x); + dummy(x); + float y=++x; + assert(y==10f); assert(x==10f); return 0; }
--- a/run/opPreInc_10.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPreInc_10.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos - module dstress.run.opPreInc_10; -import std.stdio; +void dummy(...){ +} int main() { double x = 9; - writefln(x); - writefln(++x); + dummy(x); + double y=++x; + assert(y==10); assert(x==10); return 0; }
--- a/run/opPreInc_11.d Tue Apr 19 04:05:27 2005 +0000 +++ b/run/opPreInc_11.d Tue Apr 19 11:40:22 2005 +0000 @@ -6,16 +6,16 @@ // @date@ 2005-04-18 // @uri@ news:d402bj$nc0$6@digitaldaemon.com -// @WARNING@ direct use of Phobos - module dstress.run.opPreInc_11; -import std.stdio; +void dummy(...){ +} int main() { real x = 9l; - writefln(x); - writefln(++x); + dummy(x); + real y=++x; + assert(y==10l); assert(x==10l); return 0; }