Mercurial > projects > dstress
view run/offsetof_07.d @ 1606:ebff718ff18b
Fix tests from #3. Thanks Don!
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Mon, 13 Apr 2009 13:47:03 +0200 |
parents | dbb7a0ee8baf |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ module dstress.nocompile.offsetof_07; struct MyStruct{ int a; int b; } int main(){ MyStruct s; assert(MyStruct.a.offsetof >= 0); assert(MyStruct.b.offsetof >= 0); assert(MyStruct.a.offsetof != MyStruct.b.offsetof); return 0; }