History

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

herman ten brugge committed 11 months ago

Commit 3c18df61 parent f3de8b51 file · +4 −0Browse files

Unified · Split

tests/tcctest.c+4−0
@@ -1173,6 +1173,10 @@ void char_short_test() · 1172 unmodified lines
1173 the presence of undefined behaviour (like __csf is). */1173 the presence of undefined behaviour (like __csf is). */
1174 var1 = csf(unsigned char,0x89898989);1174 var1 = csf(unsigned char,0x89898989);
1175 var4 = csf(signed char,0xabababab);1175 var4 = csf(signed char,0xabababab);
1176#ifdef __clang__
1177 /* on macos 15 arm64 this prints -1987475063 instead of 137 */
1178 var1 &= 0xff;
1179#endif
1176 printf("promote char/short funcret %d "LONG_LONG_FORMAT"\n", var1, var4);1180 printf("promote char/short funcret %d "LONG_LONG_FORMAT"\n", var1, var4);
1177 printf("promote char/short fumcret VA %d %d %d %d\n",1181 printf("promote char/short fumcret VA %d %d %d %d\n",
1178 csf(unsigned short,0xcdcdcdcd),1182 csf(unsigned short,0xcdcdcdcd),

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t