Mercurial > projects > dstress
annotate run/enum_08.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 | 52c9e86b6486 |
children |
rev | line source |
---|---|
140 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
104
ed7ca5dc2cc2
shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041104013903.548413c0.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:831
thomask
parents:
diff
changeset
|
5 // @author@ shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> |
ed7ca5dc2cc2
shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041104013903.548413c0.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:831
thomask
parents:
diff
changeset
|
6 // @date@ 2004-11-04 |
140 | 7 // @uri@ news:20041104013903.548413c0.s31552@mail.ecc.u-tokyo.ac.jp |
1383 | 8 // @uri@ nntp://digitalmars.com/D.gnu/831 |
104
ed7ca5dc2cc2
shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041104013903.548413c0.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:831
thomask
parents:
diff
changeset
|
9 |
ed7ca5dc2cc2
shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041104013903.548413c0.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:831
thomask
parents:
diff
changeset
|
10 module destress.run.enum_08; |
ed7ca5dc2cc2
shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041104013903.548413c0.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:831
thomask
parents:
diff
changeset
|
11 |
ed7ca5dc2cc2
shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041104013903.548413c0.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:831
thomask
parents:
diff
changeset
|
12 int main(){ |
193 | 13 enum MyEnum{ |
14 A=-1, | |
15 AA, | |
16 B | |
374 | 17 } |
104
ed7ca5dc2cc2
shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041104013903.548413c0.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:831
thomask
parents:
diff
changeset
|
18 MyEnum e = -MyEnum.B; |
ed7ca5dc2cc2
shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041104013903.548413c0.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:831
thomask
parents:
diff
changeset
|
19 assert(MyEnum.B>0); |
ed7ca5dc2cc2
shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041104013903.548413c0.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:831
thomask
parents:
diff
changeset
|
20 assert(e<0); |
ed7ca5dc2cc2
shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041104013903.548413c0.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:831
thomask
parents:
diff
changeset
|
21 return 0; |
ed7ca5dc2cc2
shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041104013903.548413c0.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:831
thomask
parents:
diff
changeset
|
22 } |