Mercurial > projects > dstress
view nocompile/offsetof_05.d @ 172:e5bbb877feb9
extended offsetof / offset tests
author | thomask |
---|---|
date | Wed, 01 Dec 2004 13:53:23 +0000 |
parents | |
children | f87ba6507260 |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // functions are no member fields module dstress.nocompile.offsetof_05; struct MyStruct{ int a; void test(){ } int b; } int main(){ MyStruct s; assert(s.test.offsetof >= 0); return 0; }