annotate nocompile/union_11.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 774e02c900da
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
162
df550d679fcc updated anonymous struct/union to dmd-0.108
thomask
parents:
diff changeset
1 // $HeadURL$
df550d679fcc updated anonymous struct/union to dmd-0.108
thomask
parents:
diff changeset
2 // $Date$
df550d679fcc updated anonymous struct/union to dmd-0.108
thomask
parents:
diff changeset
3 // $Author$
df550d679fcc updated anonymous struct/union to dmd-0.108
thomask
parents:
diff changeset
4
df550d679fcc updated anonymous struct/union to dmd-0.108
thomask
parents:
diff changeset
5 // @author@ Stewart Gordon <smjg_1998@yahoo.com>
df550d679fcc updated anonymous struct/union to dmd-0.108
thomask
parents:
diff changeset
6 // @date@ 2004-11-15
df550d679fcc updated anonymous struct/union to dmd-0.108
thomask
parents:
diff changeset
7 // @uri@ news:cn9vah$1shn$1@digitaldaemon.com
1485
774e02c900da changed nntp: URLs to http: URLs
thomask
parents: 1383
diff changeset
8 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=2270
162
df550d679fcc updated anonymous struct/union to dmd-0.108
thomask
parents:
diff changeset
9
435
ec6d35cccfb5 pre dmd-0.121 review
thomask
parents: 374
diff changeset
10 // __DSTRESS_ELINE__ 14
374
f87ba6507260 added missing meta-data
thomask
parents: 162
diff changeset
11
162
df550d679fcc updated anonymous struct/union to dmd-0.108
thomask
parents:
diff changeset
12 module dstress.nocompile.union_11;
df550d679fcc updated anonymous struct/union to dmd-0.108
thomask
parents:
diff changeset
13
df550d679fcc updated anonymous struct/union to dmd-0.108
thomask
parents:
diff changeset
14 union {
df550d679fcc updated anonymous struct/union to dmd-0.108
thomask
parents:
diff changeset
15 short s=1234;
df550d679fcc updated anonymous struct/union to dmd-0.108
thomask
parents:
diff changeset
16 byte b;
df550d679fcc updated anonymous struct/union to dmd-0.108
thomask
parents:
diff changeset
17 }
df550d679fcc updated anonymous struct/union to dmd-0.108
thomask
parents:
diff changeset
18
df550d679fcc updated anonymous struct/union to dmd-0.108
thomask
parents:
diff changeset
19 int main(){
df550d679fcc updated anonymous struct/union to dmd-0.108
thomask
parents:
diff changeset
20 assert(s==1234);
df550d679fcc updated anonymous struct/union to dmd-0.108
thomask
parents:
diff changeset
21 return 0;
df550d679fcc updated anonymous struct/union to dmd-0.108
thomask
parents:
diff changeset
22 }