functional: add mntent test
[libc-test.git] / src / functional / tls_align.c
blobc2c1739c7837bf8b539251f9cdaec45c58bea340
1 #include "test.h"
3 extern struct {
4 char *name;
5 unsigned size;
6 unsigned align;
7 unsigned long addr;
8 } t[4];
10 int main()
12 int i;
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);
21 return t_status;