Mercurial > projects > dstress
view nocompile/offset_02.d @ 172:e5bbb877feb9
extended offsetof / offset tests
author | thomask |
---|---|
date | Wed, 01 Dec 2004 13:53:23 +0000 |
parents | e2ba37f5b797 |
children | f87ba6507260 |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ module dstress.nocompile.offset_02; class MyClass{ int a; int b; } int main(){ MyClass c; assert(c.a.offset >= 0); assert(c.b.offset >= 0); assert(c.a.offset != c.b.offset); return 0; }