Skip to content
Snippets Groups Projects
Commit 72e0dc08 authored by rl1987's avatar rl1987
Browse files

Check roundtrip for each bit of {unsigned} int values

parent 28010947
No related branches found
No related tags found
No related merge requests found
......@@ -44,6 +44,12 @@ test_int_voidstar_interop(void *arg)
for (a = INT_MAX-1024; a < INT_MAX; a++) {
assert_int_voidptr_roundtrip(a);
}
a = 1;
for (unsigned long i = 0; i < sizeof(int) * 8; i++) {
assert_int_voidptr_roundtrip(a);
a = (a << 1);
}
}
static void
......@@ -74,6 +80,12 @@ test_uint_voidstar_interop(void *arg)
for (a = UINT_MAX-1024; a < UINT_MAX; a++) {
assert_uint_voidptr_roundtrip(a);
}
a = 1;
for (unsigned long i = 0; i < sizeof(int) * 8; i++) {
assert_uint_voidptr_roundtrip(a);
a = (a << 1);
}
}
struct testcase_t slow_ptr_tests[] = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment