aboutsummaryrefslogtreecommitdiff
path: root/tests/ldxr_i8.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ldxr_i8.c')
-rw-r--r--tests/ldxr_i8.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/tests/ldxr_i8.c b/tests/ldxr_i8.c
index c5de17e..6fe910d 100644
--- a/tests/ldxr_i8.c
+++ b/tests/ldxr_i8.c
@@ -17,9 +17,17 @@ int main()
ejit_select_compile_func(f, 2, 0, false, do_jit);
- assert(erf2(f, EJIT_ARG(data, void *), EJIT_ARG(0, unsigned)) == -1);
- assert(erf2(f, EJIT_ARG(data, void *), EJIT_ARG(4, unsigned)) == 0);
- assert(erf2(f, EJIT_ARG(data, void *), EJIT_ARG(8, unsigned)) == 0x42);
+ assert(erf2(f, EJIT_ARG(data, void *),
+ EJIT_ARG(sizeof(int8_t) * 0, unsigned)
+ ) == -1);
+
+ assert(erf2(f, EJIT_ARG(data, void *),
+ EJIT_ARG(sizeof(int8_t) * 1, unsigned)
+ ) == 0);
+
+ assert(erf2(f, EJIT_ARG(data, void *),
+ EJIT_ARG(sizeof(int8_t) * 2, unsigned)
+ ) == 0x42);
ejit_destroy_func(f);
}