Mercurial > projects > dstress
comparison run/s/static_38_A.d @ 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 | |
children | e135e029c72b |
comparison
equal
deleted
inserted
replaced
1411:44b8263c91ea | 1412:6b1dfd2d1691 |
---|---|
1 // $HeadURL$ | |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Hasan Aljudy <hasan.aljudy@gmail.com> | |
6 // @date@ 2007-02-22 | |
7 // @uri@ http://www.digitalmars.com/webnews/newsgroups.php?&group=digitalmars.D.announce&article_id=7563 | |
8 // @desc@ Re: DMD 1.007 release | |
9 | |
10 module dstress.run.s.static_38_A; | |
11 | |
12 dchar[] test(dchar[] input){ | |
13 if(input[3..5] != "rt"){ | |
14 return input[1..3]; | |
15 }else{ | |
16 return "my"; | |
17 } | |
18 } | |
19 | |
20 int main(){ | |
21 static x = test("hello"); | |
22 if("hel" != x){ | |
23 assert(0); | |
24 } | |
25 return 0; | |
26 } |