annotate run/o/opCat_27_B.d @ 1550:f46f0b6ed2d1

[Issue 627] Concatenation of strings to string arrays with ~ corrupts data Matti Niemenmaa <deewiant@gmail.com> 2006-12-02 http://d.puremagic.com/issues/show_bug.cgi?id=627
author thomask
date Mon, 23 Jul 2007 18:42:04 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1550
f46f0b6ed2d1 [Issue 627] Concatenation of strings to string arrays with ~ corrupts data
thomask
parents:
diff changeset
1 // $HeadURL$
f46f0b6ed2d1 [Issue 627] Concatenation of strings to string arrays with ~ corrupts data
thomask
parents:
diff changeset
2 // $Date$
f46f0b6ed2d1 [Issue 627] Concatenation of strings to string arrays with ~ corrupts data
thomask
parents:
diff changeset
3 // $Author$
f46f0b6ed2d1 [Issue 627] Concatenation of strings to string arrays with ~ corrupts data
thomask
parents:
diff changeset
4
f46f0b6ed2d1 [Issue 627] Concatenation of strings to string arrays with ~ corrupts data
thomask
parents:
diff changeset
5 // @author@ Matti Niemenmaa <deewiant@gmail.com>
f46f0b6ed2d1 [Issue 627] Concatenation of strings to string arrays with ~ corrupts data
thomask
parents:
diff changeset
6 // @date@ 2006-12-02
f46f0b6ed2d1 [Issue 627] Concatenation of strings to string arrays with ~ corrupts data
thomask
parents:
diff changeset
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=627
f46f0b6ed2d1 [Issue 627] Concatenation of strings to string arrays with ~ corrupts data
thomask
parents:
diff changeset
8 // @desc@ [Issue 627] Concatenation of strings to string arrays with ~ corrupts data
f46f0b6ed2d1 [Issue 627] Concatenation of strings to string arrays with ~ corrupts data
thomask
parents:
diff changeset
9
f46f0b6ed2d1 [Issue 627] Concatenation of strings to string arrays with ~ corrupts data
thomask
parents:
diff changeset
10 module dstress.run.o.opCat_27_B;
f46f0b6ed2d1 [Issue 627] Concatenation of strings to string arrays with ~ corrupts data
thomask
parents:
diff changeset
11
f46f0b6ed2d1 [Issue 627] Concatenation of strings to string arrays with ~ corrupts data
thomask
parents:
diff changeset
12 int main() {
f46f0b6ed2d1 [Issue 627] Concatenation of strings to string arrays with ~ corrupts data
thomask
parents:
diff changeset
13 dchar[][] foo;
f46f0b6ed2d1 [Issue 627] Concatenation of strings to string arrays with ~ corrupts data
thomask
parents:
diff changeset
14 if(1 != (foo ~ "foo"d.dup).length){
f46f0b6ed2d1 [Issue 627] Concatenation of strings to string arrays with ~ corrupts data
thomask
parents:
diff changeset
15 assert(0);
f46f0b6ed2d1 [Issue 627] Concatenation of strings to string arrays with ~ corrupts data
thomask
parents:
diff changeset
16 }
f46f0b6ed2d1 [Issue 627] Concatenation of strings to string arrays with ~ corrupts data
thomask
parents:
diff changeset
17 return 0;
f46f0b6ed2d1 [Issue 627] Concatenation of strings to string arrays with ~ corrupts data
thomask
parents:
diff changeset
18 }