make sure task.resource is linked with exec
[AROS.git] / test / clib / strtoull.c
blob1c6368738e66ed5db0e4d5779e4d384670c287b3
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <stdlib.h>
7 #include <stdio.h>
8 #include "test.h"
10 int main(void)
12 #if defined(AROS_HAVE_LONG_LONG)
13 TEST((strtoull("0xff", NULL, 0) == 255ULL))
14 TEST((strtoull("0xff", NULL, 16) == 255ULL))
15 TEST((strtoull("0x0", NULL, 0) == 0ULL))
16 TEST((strtoull("0x0", NULL, 16) == 0ULL))
17 TEST((strtoull("0", NULL, 0) == 0ULL))
18 TEST((strtoull("0", NULL, 16) == 0ULL))
19 TEST((strtoull("0x0 ", NULL, 0) == 0ULL))
20 TEST((strtoull("0x0 ", NULL, 16) == 0ULL))
21 TEST((strtoull("0 ", NULL, 0) == 0ULL))
22 TEST((strtoull("0 ", NULL, 16) == 0ULL))
23 TEST((strtoull("0377", NULL, 0) == 255ULL))
24 TEST((strtoull("255", NULL, 0) == 255ULL))
25 TEST((strtoull("-1", NULL, 0) == -1ULL))
26 TEST((strtoull("-0xff", NULL, 0) == -255ULL))
27 TEST((strtoull("-0xff", NULL, 16) == -255ULL))
28 TEST((strtoull("-ff", NULL, 16) == -255ULL))
29 TEST((strtoull("-0377", NULL, 0) == -255ULL))
30 TEST((strtoull("-377", NULL, 8) == -255ULL))
31 #endif
32 return OK;
35 void cleanup(void)