Mercurial > projects > dstress
annotate run/c/cast_32_B.d @ 1320:daef239f37cf
sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
author | thomask |
---|---|
date | Sun, 31 Dec 2006 19:59:08 +0000 |
parents | 6e7b74e51c23 |
children |
rev | line source |
---|---|
1186
6e7b74e51c23
[Issue 407] New: casting array literals to int causes compiler seg-fault
thomask
parents:
diff
changeset
|
1 // $HeadURL$ |
6e7b74e51c23
[Issue 407] New: casting array literals to int causes compiler seg-fault
thomask
parents:
diff
changeset
|
2 // $Date$ |
6e7b74e51c23
[Issue 407] New: casting array literals to int causes compiler seg-fault
thomask
parents:
diff
changeset
|
3 // $Author$ |
6e7b74e51c23
[Issue 407] New: casting array literals to int causes compiler seg-fault
thomask
parents:
diff
changeset
|
4 |
6e7b74e51c23
[Issue 407] New: casting array literals to int causes compiler seg-fault
thomask
parents:
diff
changeset
|
5 // @author@ Aziz Köksal <aziz.kerim@gmail.com> |
6e7b74e51c23
[Issue 407] New: casting array literals to int causes compiler seg-fault
thomask
parents:
diff
changeset
|
6 // @date@ 2006-10-08 |
1320
daef239f37cf
sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents:
1186
diff
changeset
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=407 |
1186
6e7b74e51c23
[Issue 407] New: casting array literals to int causes compiler seg-fault
thomask
parents:
diff
changeset
|
8 // @desc@ [Issue 407] New: casting array literals to int causes compiler seg-fault |
6e7b74e51c23
[Issue 407] New: casting array literals to int causes compiler seg-fault
thomask
parents:
diff
changeset
|
9 |
6e7b74e51c23
[Issue 407] New: casting array literals to int causes compiler seg-fault
thomask
parents:
diff
changeset
|
10 module dstress.run.c.cast_32_B; |
6e7b74e51c23
[Issue 407] New: casting array literals to int causes compiler seg-fault
thomask
parents:
diff
changeset
|
11 |
6e7b74e51c23
[Issue 407] New: casting array literals to int causes compiler seg-fault
thomask
parents:
diff
changeset
|
12 int main(){ |
6e7b74e51c23
[Issue 407] New: casting array literals to int causes compiler seg-fault
thomask
parents:
diff
changeset
|
13 if(! *cast(int*)[ cast(char)'c' ]){ |
6e7b74e51c23
[Issue 407] New: casting array literals to int causes compiler seg-fault
thomask
parents:
diff
changeset
|
14 assert(0); |
6e7b74e51c23
[Issue 407] New: casting array literals to int causes compiler seg-fault
thomask
parents:
diff
changeset
|
15 } |
6e7b74e51c23
[Issue 407] New: casting array literals to int causes compiler seg-fault
thomask
parents:
diff
changeset
|
16 |
6e7b74e51c23
[Issue 407] New: casting array literals to int causes compiler seg-fault
thomask
parents:
diff
changeset
|
17 return 0; |
6e7b74e51c23
[Issue 407] New: casting array literals to int causes compiler seg-fault
thomask
parents:
diff
changeset
|
18 } |