From 40a9587b21cb724e2dac41c3232b1e79189ea4b1 Mon Sep 17 00:00:00 2001 From: Ayrton Munoz Date: Wed, 9 Oct 2024 12:11:46 -0400 Subject: [PATCH] tests: Fix LIT checks in new tests --- tests/rewrite_fn_ptr_eq/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/rewrite_fn_ptr_eq/main.c b/tests/rewrite_fn_ptr_eq/main.c index 699090e3c..05f13733a 100644 --- a/tests/rewrite_fn_ptr_eq/main.c +++ b/tests/rewrite_fn_ptr_eq/main.c @@ -55,16 +55,16 @@ Test(rewrite_fn_ptr_eq, main) { struct module *mod_ptr = &mod; if (mod_ptr->fn) { } - // REWRITER: res = IA2_ADDR(fn) ? IA2_CALL(fn, _ZTSFiiiE)(1, 2) : -1; + // REWRITER: res = IA2_ADDR(fn) ? IA2_CALL(fn, _ZTSPFiiiE)(1, 2) : -1; res = fn ? fn(1, 2) : -1; - // REWRITER: res = !IA2_ADDR(fn) ? -1 : IA2_CALL(fn, _ZTSFiiiE)(1, 2); + // REWRITER: res = !IA2_ADDR(fn) ? -1 : IA2_CALL(fn, _ZTSPFiiiE)(1, 2); res = !fn ? -1 : fn(1, 2); - // REWRITER: res = x && IA2_ADDR(fn) ? IA2_CALL(fn, _ZTSFiiiE)(1, 2) : -1; + // REWRITER: res = x && IA2_ADDR(fn) ? IA2_CALL(fn, _ZTSPFiiiE)(1, 2) : -1; res = x && fn ? fn(1, 2) : -1; - // REWRITER: res = IA2_ADDR(fn) && IA2_ADDR(fn2) ? IA2_CALL(fn, _ZTSFiiiE)(1, 2) + IA2_CALL(fn2, _ZTSFiiiE)(1, 2) : -1; + // REWRITER: res = IA2_ADDR(fn) && IA2_ADDR(fn2) ? IA2_CALL(fn, _ZTSPFiiiE)(1, 2) + IA2_CALL(fn2, _ZTSPFiiiE)(1, 2) : -1; res = fn && fn2 ? fn(1, 2) + fn2(1, 2) : -1; // REWRITER: fn = IA2_ADDR(fn2) ? fn2 : fn;