Mercurial > projects > dstress
view run/offsetof_07.d @ 1586:a74f0139fc3d
Fix tests using typeof on types.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Thu, 21 Aug 2008 15:42:21 +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; }