annotate run/char_06.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 f87ba6507260
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
338
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents:
diff changeset
1 // $HeadURL$
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents:
diff changeset
2 // $Date$
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents:
diff changeset
3 // $Author$
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents:
diff changeset
4
374
f87ba6507260 added missing meta-data
thomask
parents: 338
diff changeset
5 // check that char is unsigned
338
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents:
diff changeset
6
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents:
diff changeset
7 module dstress.run.char_06;
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents:
diff changeset
8
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents:
diff changeset
9 int main(){
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents:
diff changeset
10 char a = '\xFB';
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents:
diff changeset
11 ubyte b = 0xFBu;
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents:
diff changeset
12
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents:
diff changeset
13 void* d = &a;
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents:
diff changeset
14 void* e = &b;
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents:
diff changeset
15
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents:
diff changeset
16 assert(*(cast(byte*)(e)) == *(cast(byte*)(d)));
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents:
diff changeset
17
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents:
diff changeset
18 return 0;
1f6cf5ccfbc9 1) updated rules to dmd-0.119
thomask
parents:
diff changeset
19 }