From fc1656c0a7327f28ff8e321e7f9425ef4e72aa29 Mon Sep 17 00:00:00 2001 From: GYUHA LEE Date: Sun, 1 Sep 2024 21:16:58 +0900 Subject: [PATCH] test: Fix testcase 84 Fix testcase 84 arg_mixed in ubuntu24.04 In 84 arg_mixed test, the mixed_sub is renamed to mixed_sub.specialized.1 in clang optimized builds so the test fails. Fix not to optimize in mixed_sub function. Signed-off-by: GYUHA LEE --- tests/s-exp-mixed.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/s-exp-mixed.c b/tests/s-exp-mixed.c index 1e51173b3..9f6789377 100644 --- a/tests/s-exp-mixed.c +++ b/tests/s-exp-mixed.c @@ -7,6 +7,9 @@ double mixed_add(int a, float b) return a + b; } +#if __clang__ +__attribute__((optnone)) +#endif long mixed_sub(void *a, unsigned long b) { return (long)a - b;