Skip to content

Commit

Permalink
test: Fix testcase 84
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
gyuha-wa-vect0r committed Sep 4, 2024
1 parent 7e07a43 commit fc1656c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/s-exp-mixed.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fc1656c

Please sign in to comment.