annotate run/Wysiwyg_String_01.d @ 1576:b3e16c86558e
[Issue 1398] New: GDC doesn't generate correct code
<mariusmuja@gmail.com>
2007-08-04
http://d.puremagic.com/issues/show_bug.cgi?id=1398
author |
thomask |
date |
Thu, 21 Feb 2008 15:20:08 +0000 |
parents |
36bedfa079e6 |
children |
|
rev |
line source |
374
|
1 // $HeadURL$
|
|
2 // $Date$
|
|
3 // $Author$
|
|
4
|
|
5 module dstress.run.Wysiwyg_String_01;
|
|
6
|
25
|
7 int main(){
|
1560
|
8 string x=r"hello";
|
|
9 assert(x.length==5);
|
|
10 assert(x[0]=='h');
|
|
11 assert(x[1]=='e');
|
|
12 assert(x[2]=='l');
|
|
13 assert(x[3]=='l');
|
|
14 assert(x[4]=='o');
|
25
|
15 return 0;
|
|
16 }
|