Mercurial > projects > dstress
view run/o/offsetof_78_C.d @ 1408:a4faf88df937
[Issue 979] offsetof for classes does not work
Frank Benoit <benoit@tionex.de>
2007-02-17
http://d.puremagic.com/issues/show_bug.cgi?id=979
author | thomask |
---|---|
date | Thu, 08 Mar 2007 16:31:33 +0000 |
parents | |
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; }