Mercurial > projects > dstress
view run/o/offsetof_78_C.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 | a4faf88df937 |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Frank Benoit <benoit@tionex.de> // @date@ 2007-02-17 // @uri@ http://d.puremagic.com/issues/show_bug.cgi?id=979 // @desc@ [Issue 979] offsetof for classes does not work module dstress.run.o.offsetof_78_C; class Foo{ int x; static size_t test(){ return x.offsetof; } } int main(){ if(Foo.x.offsetof != Foo.test()){ assert(0); } return 0; }