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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1080
d2ef2a6e291c <daiphoenix@lycos.com>
thomask
parents:
diff changeset
1 // $HeadURL$
d2ef2a6e291c <daiphoenix@lycos.com>
thomask
parents:
diff changeset
2 // $Date$
d2ef2a6e291c <daiphoenix@lycos.com>
thomask
parents:
diff changeset
3 // $Author$
d2ef2a6e291c <daiphoenix@lycos.com>
thomask
parents:
diff changeset
4
d2ef2a6e291c <daiphoenix@lycos.com>
thomask
parents:
diff changeset
5 // @author@ <daiphoenix@lycos.com>
d2ef2a6e291c <daiphoenix@lycos.com>
thomask
parents:
diff changeset
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
d2ef2a6e291c <daiphoenix@lycos.com>
thomask
parents:
diff changeset
8
d2ef2a6e291c <daiphoenix@lycos.com>
thomask
parents:
diff changeset
9 module dstress.run.s.string_postfix_07_B;
d2ef2a6e291c <daiphoenix@lycos.com>
thomask
parents:
diff changeset
10
d2ef2a6e291c <daiphoenix@lycos.com>
thomask
parents:
diff changeset
11 int main(){
d2ef2a6e291c <daiphoenix@lycos.com>
thomask
parents:
diff changeset
12 char[6] cstr = "1234"c;
d2ef2a6e291c <daiphoenix@lycos.com>
thomask
parents:
diff changeset
13 auto a = cast(dchar[1])(cstr);
d2ef2a6e291c <daiphoenix@lycos.com>
thomask
parents:
diff changeset
14 auto b = cast(dchar[1])("1234"c);
d2ef2a6e291c <daiphoenix@lycos.com>
thomask
parents:
diff changeset
15
d2ef2a6e291c <daiphoenix@lycos.com>
thomask
parents:
diff changeset
16 if(a.length != b.length){
d2ef2a6e291c <daiphoenix@lycos.com>
thomask
parents:
diff changeset
17 assert(0);
d2ef2a6e291c <daiphoenix@lycos.com>
thomask
parents:
diff changeset
18 }
d2ef2a6e291c <daiphoenix@lycos.com>
thomask
parents:
diff changeset
19
d2ef2a6e291c <daiphoenix@lycos.com>
thomask
parents:
diff changeset
20 if(a != b){
d2ef2a6e291c <daiphoenix@lycos.com>
thomask
parents:
diff changeset
21 assert(0);
d2ef2a6e291c <daiphoenix@lycos.com>
thomask
parents:
diff changeset
22 }
d2ef2a6e291c <daiphoenix@lycos.com>
thomask
parents:
diff changeset
23
d2ef2a6e291c <daiphoenix@lycos.com>
thomask
parents:
diff changeset
24 return 0;
d2ef2a6e291c <daiphoenix@lycos.com>
thomask
parents:
diff changeset
25 }