annotate run/b/bug_cod1_2528_B.d @ 1447:ef3062e62d77

[Issue 1092] compiler crash in ..\ztc\cod1.c 2528 Vladimir <thecybershadow@gmail.com> 2007-04-03 http://d.puremagic.com/issues/show_bug.cgi?id=1092
author thomask
date Wed, 04 Apr 2007 20:28:49 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1447
ef3062e62d77 [Issue 1092] compiler crash in ..\ztc\cod1.c 2528
thomask
parents:
diff changeset
1 // $HeadURL$
ef3062e62d77 [Issue 1092] compiler crash in ..\ztc\cod1.c 2528
thomask
parents:
diff changeset
2 // $Date$
ef3062e62d77 [Issue 1092] compiler crash in ..\ztc\cod1.c 2528
thomask
parents:
diff changeset
3 // $Author$
ef3062e62d77 [Issue 1092] compiler crash in ..\ztc\cod1.c 2528
thomask
parents:
diff changeset
4
ef3062e62d77 [Issue 1092] compiler crash in ..\ztc\cod1.c 2528
thomask
parents:
diff changeset
5 // @author@ Vladimir <thecybershadow@gmail.com>
ef3062e62d77 [Issue 1092] compiler crash in ..\ztc\cod1.c 2528
thomask
parents:
diff changeset
6 // @date@ 2007-04-03
ef3062e62d77 [Issue 1092] compiler crash in ..\ztc\cod1.c 2528
thomask
parents:
diff changeset
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=1092
ef3062e62d77 [Issue 1092] compiler crash in ..\ztc\cod1.c 2528
thomask
parents:
diff changeset
8 // @desc@ [Issue 1092] compiler crash in ..\ztc\cod1.c 2528
ef3062e62d77 [Issue 1092] compiler crash in ..\ztc\cod1.c 2528
thomask
parents:
diff changeset
9
ef3062e62d77 [Issue 1092] compiler crash in ..\ztc\cod1.c 2528
thomask
parents:
diff changeset
10 module dstress.run.b.bug_cod1_2528_B;
ef3062e62d77 [Issue 1092] compiler crash in ..\ztc\cod1.c 2528
thomask
parents:
diff changeset
11
ef3062e62d77 [Issue 1092] compiler crash in ..\ztc\cod1.c 2528
thomask
parents:
diff changeset
12 int main(){
ef3062e62d77 [Issue 1092] compiler crash in ..\ztc\cod1.c 2528
thomask
parents:
diff changeset
13 byte x = 'Z';
ef3062e62d77 [Issue 1092] compiler crash in ..\ztc\cod1.c 2528
thomask
parents:
diff changeset
14 byte[] y = [x];
ef3062e62d77 [Issue 1092] compiler crash in ..\ztc\cod1.c 2528
thomask
parents:
diff changeset
15 void[] z = cast(void[])y;
ef3062e62d77 [Issue 1092] compiler crash in ..\ztc\cod1.c 2528
thomask
parents:
diff changeset
16
ef3062e62d77 [Issue 1092] compiler crash in ..\ztc\cod1.c 2528
thomask
parents:
diff changeset
17 if('Z' != (cast(byte[]) z)[0]){
ef3062e62d77 [Issue 1092] compiler crash in ..\ztc\cod1.c 2528
thomask
parents:
diff changeset
18 assert(0);
ef3062e62d77 [Issue 1092] compiler crash in ..\ztc\cod1.c 2528
thomask
parents:
diff changeset
19 }
ef3062e62d77 [Issue 1092] compiler crash in ..\ztc\cod1.c 2528
thomask
parents:
diff changeset
20
ef3062e62d77 [Issue 1092] compiler crash in ..\ztc\cod1.c 2528
thomask
parents:
diff changeset
21 return 0;
ef3062e62d77 [Issue 1092] compiler crash in ..\ztc\cod1.c 2528
thomask
parents:
diff changeset
22 }
ef3062e62d77 [Issue 1092] compiler crash in ..\ztc\cod1.c 2528
thomask
parents:
diff changeset
23