1570af302Sopenharmony_ci#include "test.h" 2570af302Sopenharmony_ci 3570af302Sopenharmony_ciextern struct { 4570af302Sopenharmony_ci char *name; 5570af302Sopenharmony_ci unsigned size; 6570af302Sopenharmony_ci unsigned align; 7570af302Sopenharmony_ci unsigned long addr; 8570af302Sopenharmony_ci} t[4]; 9570af302Sopenharmony_ci 10570af302Sopenharmony_ciint main() 11570af302Sopenharmony_ci{ 12570af302Sopenharmony_ci int i; 13570af302Sopenharmony_ci 14570af302Sopenharmony_ci for (i = 0; i < sizeof t/sizeof *t; i++) { 15570af302Sopenharmony_ci if (!t[i].name) 16570af302Sopenharmony_ci t_error("name is not set for t[%d]\n", i); 17570af302Sopenharmony_ci if (t[i].addr & (t[i].align-1)) 18570af302Sopenharmony_ci t_error("bad alignment: %s, size: %u, align: %u, addr: 0x%lx\n", 19570af302Sopenharmony_ci t[i].name, t[i].size, t[i].align, t[i].addr); 20570af302Sopenharmony_ci } 21570af302Sopenharmony_ci return t_status; 22570af302Sopenharmony_ci} 23