Mercurial > projects > dstress
annotate run/s/string_postfix_07_B.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 | d2ef2a6e291c |
children | 902d2c168029 |
rev | line source |
---|---|
1080 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ <daiphoenix@lycos.com> | |
6 // @date@ 2006-03-14 | |
1319
81222734adf3
sed'ed replacement of new:...http.d.puremagic.co... with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents:
1080
diff
changeset
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=51 |
1080 | 8 |
9 module dstress.run.s.string_postfix_07_B; | |
10 | |
11 int main(){ | |
12 char[6] cstr = "1234"c; | |
13 auto a = cast(dchar[1])(cstr); | |
14 auto b = cast(dchar[1])("1234"c); | |
15 | |
16 if(a.length != b.length){ | |
17 assert(0); | |
18 } | |
19 | |
20 if(a != b){ | |
21 assert(0); | |
22 } | |
23 | |
24 return 0; | |
25 } |