annotate run/cast_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 52c9e86b6486
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
215
b79bc0c00bfc opShl and uint
thomask
parents:
diff changeset
1 // $HeadURL$
b79bc0c00bfc opShl and uint
thomask
parents:
diff changeset
2 // $Date$
b79bc0c00bfc opShl and uint
thomask
parents:
diff changeset
3 // $Author$
b79bc0c00bfc opShl and uint
thomask
parents:
diff changeset
4
b79bc0c00bfc opShl and uint
thomask
parents:
diff changeset
5 // @author@ Hiroshi Sakurai <Hiroshi_member@pathlink.com>
b79bc0c00bfc opShl and uint
thomask
parents:
diff changeset
6 // @date@ 2004-12-29
b79bc0c00bfc opShl and uint
thomask
parents:
diff changeset
7 // @uri@ news:cqtmid$3no$1@digitaldaemon.com
1383
52c9e86b6486 @url@ -> @uri@
thomask
parents: 215
diff changeset
8 // @uri@ nntp://digitalmars.com/digitalmars.D.bugs/2618
52c9e86b6486 @url@ -> @uri@
thomask
parents: 215
diff changeset
9 // @uri@ http://f17.aaa.livedoor.jp/~labamba/?BugTrack%2F10
215
b79bc0c00bfc opShl and uint
thomask
parents:
diff changeset
10
b79bc0c00bfc opShl and uint
thomask
parents:
diff changeset
11 module dstress.run.cast_06;
b79bc0c00bfc opShl and uint
thomask
parents:
diff changeset
12
b79bc0c00bfc opShl and uint
thomask
parents:
diff changeset
13 int main(){
b79bc0c00bfc opShl and uint
thomask
parents:
diff changeset
14 uint u;
b79bc0c00bfc opShl and uint
thomask
parents:
diff changeset
15 int a = 1;
b79bc0c00bfc opShl and uint
thomask
parents:
diff changeset
16 int b = 31;
b79bc0c00bfc opShl and uint
thomask
parents:
diff changeset
17 u = a << b;
b79bc0c00bfc opShl and uint
thomask
parents:
diff changeset
18 assert( u == 0b1000_0000__0000_0000__0000_0000__0000_0000u);
b79bc0c00bfc opShl and uint
thomask
parents:
diff changeset
19 return 0;
b79bc0c00bfc opShl and uint
thomask
parents:
diff changeset
20 }