arm-native/processor.resource: build for raspi target
[AROS.git] / test / dos / doslist.c
blob91d0b1c2198029000cb57e287361ba71acf55d9f
1 /*
2 Copyright © 1995-2015, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <aros/debug.h>
7 #include <dos/dosextens.h>
9 #include <stddef.h>
11 int __nocommandline = 1;
13 int main(void)
15 const unsigned int dl_offset = offsetof(struct DeviceList, dl_Name);
16 const unsigned int di_offset = offsetof(struct DevInfo, dvi_Name);
17 const unsigned int gen_offset = offsetof(struct DosList, dol_Name);
19 if ((dl_offset != di_offset) || (dl_offset != gen_offset))
21 bug("Broken DosList alignment.\n");
22 bug("DosList.dol_Name : %u bytes\n", gen_offset);
23 bug("DeviceList.dl_Name: %u bytes\n", dl_offset);
24 bug("DevInfo.dvi_Name : %u bytes\n", di_offset);
26 return 20;
28 else
29 return 0;