Mercurial > projects > dstress
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 |
rev | line source |
---|---|
215 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // @author@ Hiroshi Sakurai <Hiroshi_member@pathlink.com> | |
6 // @date@ 2004-12-29 | |
7 // @uri@ news:cqtmid$3no$1@digitaldaemon.com | |
1383 | 8 // @uri@ nntp://digitalmars.com/digitalmars.D.bugs/2618 |
9 // @uri@ http://f17.aaa.livedoor.jp/~labamba/?BugTrack%2F10 | |
215 | 10 |
11 module dstress.run.cast_06; | |
12 | |
13 int main(){ | |
14 uint u; | |
15 int a = 1; | |
16 int b = 31; | |
17 u = a << b; | |
18 assert( u == 0b1000_0000__0000_0000__0000_0000__0000_0000u); | |
19 return 0; | |
20 } |