Mercurial > projects > dstress
annotate run/l/length_10_A.d @ 1410:be2b20dc0eb4
added bugzilla URIs
author | thomask |
---|---|
date | Thu, 08 Mar 2007 16:36:19 +0000 |
parents | 81222734adf3 |
children | 86c8a8d4694b |
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 |
1410 | 8 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1031 |
996 | 9 |
10 module dstress.run.l.length_10_A; | |
11 | |
12 size_t intRes(){ | |
13 return 4; | |
14 } | |
15 | |
16 static const char[] foo = "abc123"; | |
17 | |
18 int main(){ | |
19 char c = foo[intRes() % $]; | |
20 | |
21 if(c != '2'){ | |
22 assert(0); | |
23 } | |
24 | |
25 return 0; | |
26 } |