Browse Source

Check more values of int

rl1987 6 years ago
parent
commit
280109473f
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/test/test_ptr_slow.c

+ 5 - 1
src/test/test_ptr_slow.c

@@ -33,7 +33,11 @@ test_int_voidstar_interop(void *arg)
   int a;
   (void)arg;
 
-  for (a = 0; a <= 1024; a++) {
+  for (a = -1024; a <= 1024; a++) {
+    assert_int_voidptr_roundtrip(a);
+  }
+
+  for (a = INT_MIN; a <= INT_MIN+1024; a++) {
     assert_int_voidptr_roundtrip(a);
   }