annotate run/enum_09.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: 127
diff changeset
1 // $HeadURL$
a33ad7189d21 1) news:// -> news:
thomask
parents: 127
diff changeset
2 // $Date$
a33ad7189d21 1) news:// -> news:
thomask
parents: 127
diff changeset
3 // $Author$
127
95bd987a5949 shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041112233233.3584a28f.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:844
thomask
parents:
diff changeset
4
95bd987a5949 shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041112233233.3584a28f.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:844
thomask
parents:
diff changeset
5 // @author@ shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp>
95bd987a5949 shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041112233233.3584a28f.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:844
thomask
parents:
diff changeset
6 // @date@ 2004-11-12
140
a33ad7189d21 1) news:// -> news:
thomask
parents: 127
diff changeset
7 // @uri@ news:20041112233233.3584a28f.s31552@mail.ecc.u-tokyo.ac.jp
1383
52c9e86b6486 @url@ -> @uri@
thomask
parents: 140
diff changeset
8 // @uri@ nntp://digitalmars.com/D.gnu/844
127
95bd987a5949 shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041112233233.3584a28f.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:844
thomask
parents:
diff changeset
9
95bd987a5949 shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041112233233.3584a28f.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:844
thomask
parents:
diff changeset
10 module dstress.run.enum_09;
95bd987a5949 shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041112233233.3584a28f.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:844
thomask
parents:
diff changeset
11
95bd987a5949 shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041112233233.3584a28f.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:844
thomask
parents:
diff changeset
12 enum Enum{
95bd987a5949 shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041112233233.3584a28f.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:844
thomask
parents:
diff changeset
13 A = -1
95bd987a5949 shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041112233233.3584a28f.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:844
thomask
parents:
diff changeset
14 }
95bd987a5949 shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041112233233.3584a28f.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:844
thomask
parents:
diff changeset
15
95bd987a5949 shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041112233233.3584a28f.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:844
thomask
parents:
diff changeset
16 int main() {
95bd987a5949 shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041112233233.3584a28f.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:844
thomask
parents:
diff changeset
17 Enum e = Enum.A;
95bd987a5949 shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041112233233.3584a28f.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:844
thomask
parents:
diff changeset
18 assert(e < 0);
95bd987a5949 shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041112233233.3584a28f.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:844
thomask
parents:
diff changeset
19 return 0;
95bd987a5949 shinichiro.h <s31552@mail.ecc.u-tokyo.ac.jp> news://20041112233233.3584a28f.s31552@mail.ecc.u-tokyo.ac.jp nttp://digitalmars.com/D.gnu:844
thomask
parents:
diff changeset
20 }