Fix clang macos 15 bug on arm64 in tests/tcctest.c

This commit is contained in:
herman ten brugge
2025-12-17 19:54:22 +01:00
parent f3de8b5307
commit 3c18df610d

View File

@@ -1173,6 +1173,10 @@ void char_short_test()
the presence of undefined behaviour (like __csf is). */
var1 = csf(unsigned char,0x89898989);
var4 = csf(signed char,0xabababab);
#ifdef __clang__
/* on macos 15 arm64 this prints -1987475063 instead of 137 */
var1 &= 0xff;
#endif
printf("promote char/short funcret %d "LONG_LONG_FORMAT"\n", var1, var4);
printf("promote char/short fumcret VA %d %d %d %d\n",
csf(unsigned short,0xcdcdcdcd),