mirror of
git://repo.or.cz/tinycc.git
synced 2026-06-26 23:04:18 +08:00
Fix clang macos 15 bug on arm64 in tests/tcctest.c
This commit is contained in:
parent
f3de8b5307
commit
3c18df610d
@ -1173,6 +1173,10 @@ void char_short_test()
|
|||||||
the presence of undefined behaviour (like __csf is). */
|
the presence of undefined behaviour (like __csf is). */
|
||||||
var1 = csf(unsigned char,0x89898989);
|
var1 = csf(unsigned char,0x89898989);
|
||||||
var4 = csf(signed char,0xabababab);
|
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 funcret %d "LONG_LONG_FORMAT"\n", var1, var4);
|
||||||
printf("promote char/short fumcret VA %d %d %d %d\n",
|
printf("promote char/short fumcret VA %d %d %d %d\n",
|
||||||
csf(unsigned short,0xcdcdcdcd),
|
csf(unsigned short,0xcdcdcdcd),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user