Mercurial > projects > dstress
annotate run/l/length_10_I.d @ 1319:81222734adf3
sed'ed replacement of new:...http.d.puremagic.co... with http://d.puremagic.com/issues/show_bug.cgi?...
author | thomask |
---|---|
date | Sun, 31 Dec 2006 19:58:06 +0000 |
parents | 1d695c74f398 |
children |
rev | line source |
---|---|
996 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ <CppCoder@gmail.com> | |
6 // @date@ 2006-05-02 | |
1319
81222734adf3
sed'ed replacement of new:...http.d.puremagic.co... with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents:
996
diff
changeset
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=123 |
996 | 8 |
9 module dstress.run.l.length_10_I; | |
10 | |
11 size_t intRes(){ | |
12 return 4; | |
13 } | |
14 | |
15 static const char[] foo = "abc123"; | |
16 | |
17 int main(){ | |
18 char c = foo[intRes() % length]; | |
19 | |
20 if(c != '2'){ | |
21 assert(0); | |
22 } | |
23 | |
24 return 0; | |
25 } |