Mercurial > projects > dstress
annotate run/s/switch_23_A.d @ 1630:d0efa3ae5522 default tip
run/mini/naked_asm5: New x86_64 ABI passes the arguments in reverse order.
author | David Nadlinger <code@klickverbot.at> |
---|---|
date | Sat, 23 Apr 2011 22:57:32 +0200 |
parents | daef239f37cf |
children |
rev | line source |
---|---|
1240
0972a593ff76
[Issue 596] New: Support array, arrayliteral and struct in switch and case
thomask
parents:
diff
changeset
|
1 // $HeadURL$ |
0972a593ff76
[Issue 596] New: Support array, arrayliteral and struct in switch and case
thomask
parents:
diff
changeset
|
2 // $Date$ |
0972a593ff76
[Issue 596] New: Support array, arrayliteral and struct in switch and case
thomask
parents:
diff
changeset
|
3 // $Author$ |
0972a593ff76
[Issue 596] New: Support array, arrayliteral and struct in switch and case
thomask
parents:
diff
changeset
|
4 |
0972a593ff76
[Issue 596] New: Support array, arrayliteral and struct in switch and case
thomask
parents:
diff
changeset
|
5 // @author@ Nazo Humei <lovesyao@hotmail.com> |
0972a593ff76
[Issue 596] New: Support array, arrayliteral and struct in switch and case
thomask
parents:
diff
changeset
|
6 // @date@ 2006-11-25 |
1320
daef239f37cf
sed'ed replacement of new:...http.d.puremagic.com/issues/ with http://d.puremagic.com/issues/show_bug.cgi?...
thomask
parents:
1240
diff
changeset
|
7 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=596 |
1240
0972a593ff76
[Issue 596] New: Support array, arrayliteral and struct in switch and case
thomask
parents:
diff
changeset
|
8 // @desc@ [Issue 596] New: Support array, arrayliteral and struct in switch and case |
0972a593ff76
[Issue 596] New: Support array, arrayliteral and struct in switch and case
thomask
parents:
diff
changeset
|
9 |
0972a593ff76
[Issue 596] New: Support array, arrayliteral and struct in switch and case
thomask
parents:
diff
changeset
|
10 module dstress.run.s.switch_23_A; |
0972a593ff76
[Issue 596] New: Support array, arrayliteral and struct in switch and case
thomask
parents:
diff
changeset
|
11 |
0972a593ff76
[Issue 596] New: Support array, arrayliteral and struct in switch and case
thomask
parents:
diff
changeset
|
12 int main(){ |
0972a593ff76
[Issue 596] New: Support array, arrayliteral and struct in switch and case
thomask
parents:
diff
changeset
|
13 switch(['a']){ |
0972a593ff76
[Issue 596] New: Support array, arrayliteral and struct in switch and case
thomask
parents:
diff
changeset
|
14 case "c": |
0972a593ff76
[Issue 596] New: Support array, arrayliteral and struct in switch and case
thomask
parents:
diff
changeset
|
15 break; |
0972a593ff76
[Issue 596] New: Support array, arrayliteral and struct in switch and case
thomask
parents:
diff
changeset
|
16 case "a": |
0972a593ff76
[Issue 596] New: Support array, arrayliteral and struct in switch and case
thomask
parents:
diff
changeset
|
17 return 0; |
0972a593ff76
[Issue 596] New: Support array, arrayliteral and struct in switch and case
thomask
parents:
diff
changeset
|
18 case "b": |
0972a593ff76
[Issue 596] New: Support array, arrayliteral and struct in switch and case
thomask
parents:
diff
changeset
|
19 break; |
0972a593ff76
[Issue 596] New: Support array, arrayliteral and struct in switch and case
thomask
parents:
diff
changeset
|
20 } |
0972a593ff76
[Issue 596] New: Support array, arrayliteral and struct in switch and case
thomask
parents:
diff
changeset
|
21 |
0972a593ff76
[Issue 596] New: Support array, arrayliteral and struct in switch and case
thomask
parents:
diff
changeset
|
22 assert(0); |
0972a593ff76
[Issue 596] New: Support array, arrayliteral and struct in switch and case
thomask
parents:
diff
changeset
|
23 } |