compiler/clib: Remove usage of acb_environptr field outside __arosc_environ.c
[AROS.git] / test / dos / doslist.c
blob21fc0e4b2bd0987971740914d811ec626a9a3fb1
1 #include <aros/debug.h>
2 #include <dos/dosextens.h>
4 #include <stddef.h>
6 int __nocommandline = 1;
8 int main(void)
10 const unsigned int dl_offset = offsetof(struct DeviceList, dl_Name);
11 const unsigned int di_offset = offsetof(struct DevInfo, dvi_Name);
12 const unsigned int gen_offset = offsetof(struct DosList, dol_Name);
14 if ((dl_offset != di_offset) || (dl_offset != gen_offset))
16 bug("Broken DosList alignment.\n");
17 bug("DosList.dol_Name : %u bytes\n", gen_offset);
18 bug("DeviceList.dl_Name: %u bytes\n", dl_offset);
19 bug("DevInfo.dvi_Name : %u bytes\n", di_offset);
21 return 20;
23 else
24 return 0;