Mercurial > projects > dstress
view run/align_06.d @ 70:5f98d4a33d49
1) review of all test cases with unexpected results (except encoding and html/xml)
2) updated todo
author | thomask |
---|---|
date | Sat, 23 Oct 2004 22:47:47 +0000 |
parents | 4e11884d76a4 |
children |
line wrap: on
line source
module dtress.run.align_06; struct SmallStruct{ align(1) byte a; align(1) byte b; } struct BigStruct{ align(4) byte e; align(4) byte f; } int main(){ SmallStruct s; BigStruct S; assert(&s.b-&s.a==1); assert(&S.f-&S.e==4); return 0; }