Mercurial > projects > dstress
annotate nocompile/offsetof_05.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 |
rev | line source |
---|---|
172 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // functions are no member fields | |
6 | |
374 | 7 // __DSTRESS_ELINE__ 21 |
8 | |
172 | 9 module dstress.nocompile.offsetof_05; |
10 | |
11 struct MyStruct{ | |
12 int a; | |
13 void test(){ | |
14 } | |
15 int b; | |
16 } | |
17 | |
18 int main(){ | |
19 MyStruct s; | |
20 | |
21 assert(s.test.offsetof >= 0); | |
22 | |
23 return 0; | |
24 } |