Skip to content

Commit fc1656c

Browse files
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 <leejune30@chungbuk.ac.kr>
1 parent 7e07a43 commit fc1656c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/s-exp-mixed.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ double mixed_add(int a, float b)
77
return a + b;
88
}
99

10+
#if __clang__
11+
__attribute__((optnone))
12+
#endif
1013
long mixed_sub(void *a, unsigned long b)
1114
{
1215
return (long)a - b;

0 commit comments

Comments
 (0)