Mercurial > projects > dstress
annotate compile/a/array_initialization_33_A.d @ 1452:a3141f24cfac
[Issue 1072] this code should run as the same as previous bug code , but dmd av here
david <davidl@126.com>
2007-03-20
http://d.puremagic.com/issues/show_bug.cgi?id=1072
author | thomask |
---|---|
date | Wed, 04 Apr 2007 20:34:23 +0000 |
parents | |
children |
rev | line source |
---|---|
1452
a3141f24cfac
[Issue 1072] this code should run as the same as previous bug code , but dmd av here
thomask
parents:
diff
changeset
|
1 // $HeadURL$ |
a3141f24cfac
[Issue 1072] this code should run as the same as previous bug code , but dmd av here
thomask
parents:
diff
changeset
|
2 // $Date$ |
a3141f24cfac
[Issue 1072] this code should run as the same as previous bug code , but dmd av here
thomask
parents:
diff
changeset
|
3 // $Author$ |
a3141f24cfac
[Issue 1072] this code should run as the same as previous bug code , but dmd av here
thomask
parents:
diff
changeset
|
4 |
a3141f24cfac
[Issue 1072] this code should run as the same as previous bug code , but dmd av here
thomask
parents:
diff
changeset
|
5 // @author@ david <davidl@126.com> |
a3141f24cfac
[Issue 1072] this code should run as the same as previous bug code , but dmd av here
thomask
parents:
diff
changeset
|
6 // @date@ 2007-03-20 |
a3141f24cfac
[Issue 1072] this code should run as the same as previous bug code , but dmd av here
thomask
parents:
diff
changeset
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1072 |
a3141f24cfac
[Issue 1072] this code should run as the same as previous bug code , but dmd av here
thomask
parents:
diff
changeset
|
8 // @desc@ [Issue 1072] this code should run as the same as previous bug code , but dmd av here |
a3141f24cfac
[Issue 1072] this code should run as the same as previous bug code , but dmd av here
thomask
parents:
diff
changeset
|
9 |
a3141f24cfac
[Issue 1072] this code should run as the same as previous bug code , but dmd av here
thomask
parents:
diff
changeset
|
10 module dstress.compile.a.array_initialization_33_A; |
a3141f24cfac
[Issue 1072] this code should run as the same as previous bug code , but dmd av here
thomask
parents:
diff
changeset
|
11 |
a3141f24cfac
[Issue 1072] this code should run as the same as previous bug code , but dmd av here
thomask
parents:
diff
changeset
|
12 char[] hello(){ |
a3141f24cfac
[Issue 1072] this code should run as the same as previous bug code , but dmd av here
thomask
parents:
diff
changeset
|
13 char[] result=""; |
a3141f24cfac
[Issue 1072] this code should run as the same as previous bug code , but dmd av here
thomask
parents:
diff
changeset
|
14 for(;;){ |
a3141f24cfac
[Issue 1072] this code should run as the same as previous bug code , but dmd av here
thomask
parents:
diff
changeset
|
15 result ~= `abc`; |
a3141f24cfac
[Issue 1072] this code should run as the same as previous bug code , but dmd av here
thomask
parents:
diff
changeset
|
16 } |
a3141f24cfac
[Issue 1072] this code should run as the same as previous bug code , but dmd av here
thomask
parents:
diff
changeset
|
17 return result; |
a3141f24cfac
[Issue 1072] this code should run as the same as previous bug code , but dmd av here
thomask
parents:
diff
changeset
|
18 } |
a3141f24cfac
[Issue 1072] this code should run as the same as previous bug code , but dmd av here
thomask
parents:
diff
changeset
|
19 |
a3141f24cfac
[Issue 1072] this code should run as the same as previous bug code , but dmd av here
thomask
parents:
diff
changeset
|
20 static assert("" == hello()); |