Mercurial > projects > dstress
diff run/opPostDec_08.d @ 452:8c1ae5dd51b0
fixed test cases(names)
author | thomask |
---|---|
date | Tue, 19 Apr 2005 11:40:22 +0000 |
parents | b35781291678 |
children | b8c0195059d9 |
line wrap: on
line diff
--- 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; }