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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
140
a33ad7189d21 1) news:// -> news:
thomask
parents: 104
diff changeset
1 // $HeadURL$
a33ad7189d21 1) news:// -> news:
thomask
parents: 104
diff changeset
2 // $Date$
a33ad7189d21 1) news:// -> news:
thomask
parents: 104
diff changeset
3 // $Author$
a33ad7189d21 1) news:// -> news:
thomask
parents: 104
diff changeset
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
a33ad7189d21 1) news:// -> news:
thomask
parents: 104
diff changeset
7 // @uri@ news:20041104013903.548413c0.s31552@mail.ecc.u-tokyo.ac.jp
1383
52c9e86b6486 @url@ -> @uri@
thomask
parents: 374
diff changeset
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
7203f4521cb2 John Reimer <brk_6502@yahoo.com>
thomask
parents: 140
diff changeset
13 enum MyEnum{
7203f4521cb2 John Reimer <brk_6502@yahoo.com>
thomask
parents: 140
diff changeset
14 A=-1,
7203f4521cb2 John Reimer <brk_6502@yahoo.com>
thomask
parents: 140
diff changeset
15 AA,
7203f4521cb2 John Reimer <brk_6502@yahoo.com>
thomask
parents: 140
diff changeset
16 B
374
f87ba6507260 added missing meta-data
thomask
parents: 193
diff changeset
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 }