Mercurial > projects > dstress
annotate run/offsetof_07.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 | dbb7a0ee8baf |
children |
rev | line source |
---|---|
177 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 module dstress.nocompile.offsetof_07; | |
6 | |
7 struct MyStruct{ | |
8 int a; | |
9 int b; | |
10 } | |
11 | |
12 int main(){ | |
13 MyStruct s; | |
14 | |
15 assert(MyStruct.a.offsetof >= 0); | |
16 assert(MyStruct.b.offsetof >= 0); | |
17 assert(MyStruct.a.offsetof != MyStruct.b.offsetof); | |
18 | |
19 return 0; | |
20 } |