Mercurial > projects > dstress
view run/o/offsetof_78_B.d @ 1533:ac560364010c
enforce checks for -release builds
author | thomask |
---|---|
date | Fri, 27 Apr 2007 17:36:34 +0000 |
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_B; class Foo{ int x; static size_t test(){ return x.offsetof; } } int main(){ Foo f = new Foo(); if(f.x.offsetof != Foo.test()){ assert(0); } return 0; }