Mercurial > projects > dstress
changeset 1412:6b1dfd2d1691
Re: DMD 1.007 release
Hasan Aljudy <hasan.aljudy@gmail.com>
2007-02-22
http://www.digitalmars.com/webnews/newsgroups.php?&group=digitalmars.D.announce&article_id=7563
author | thomask |
---|---|
date | Sun, 11 Mar 2007 11:05:29 +0000 |
parents | 44b8263c91ea |
children | 16360a39d709 |
files | run/s/static_38_A.d |
diffstat | 1 files changed, 26 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/s/static_38_A.d Sun Mar 11 11:05:29 2007 +0000 @@ -0,0 +1,26 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Hasan Aljudy <hasan.aljudy@gmail.com> +// @date@ 2007-02-22 +// @uri@ http://www.digitalmars.com/webnews/newsgroups.php?&group=digitalmars.D.announce&article_id=7563 +// @desc@ Re: DMD 1.007 release + +module dstress.run.s.static_38_A; + +dchar[] test(dchar[] input){ + if(input[3..5] != "rt"){ + return input[1..3]; + }else{ + return "my"; + } +} + +int main(){ + static x = test("hello"); + if("hel" != x){ + assert(0); + } + return 0; +}