Mercurial > projects > dstress
view run/offsetof_07.d @ 1611:9f94be6a5ace
Fix typo in last commit.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 10 May 2009 10:56:43 +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; }