import std.c.stdio; extern(C) { align(8) { struct Test { short field1; char field2[17]; }; }; }; int main(char[][] args) { printf("Test.size = %d\n", Test.size); printf("Test member offsets and sizes:\n"); printf("\tfield1=%d %d\n\tfield2=%d %d\n", Test.field1.offset, Test.field1.size, Test.field2.offset, Test.field2.size); return 0; };