From 5e64dbec81504aaacac1e733edd5230f59670466 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 13 Jul 2024 21:36:02 +0300 Subject: make tests only compile once + Select between jit/bytecode with a runtime parameter --- tests/ldxr_u16.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/ldxr_u16.c') diff --git a/tests/ldxr_u16.c b/tests/ldxr_u16.c index 38b6492..e8f517f 100644 --- a/tests/ldxr_u16.c +++ b/tests/ldxr_u16.c @@ -4,8 +4,10 @@ static uint16_t data[] = { 0xffff, 0x0000, 0x4242 }; -int main() +int main(int argc, char *argv[]) { + (void)argv; + bool do_jit = argc > 1; struct ejit_operand operands[2] = { EJIT_OPERAND_GPR(0, EJIT_POINTER), EJIT_OPERAND_GPR(1, EJIT_TYPE(unsigned)) -- cgit v1.2.3