1 #include "test.h" 2 3 extern struct { 4 char *name; 5 unsigned size; 6 unsigned align; 7 unsigned long addr; 8 } t[4]; 9 main()10int main() 11 { 12 int i; 13 14 for (i = 0; i < sizeof t/sizeof *t; i++) { 15 if (!t[i].name) 16 t_error("name is not set for t[%d]\n", i); 17 if (t[i].addr & (t[i].align-1)) 18 t_error("bad alignment: %s, size: %u, align: %u, addr: 0x%lx\n", 19 t[i].name, t[i].size, t[i].align, t[i].addr); 20 } 21 return t_status; 22 } 23