History

Fix old_style_f call when compiled by clang.

Christian Jullien committed 3 years ago

Commit 233d5d51 parent f89a6f11 file · +8 −0Browse files

Unified · Split

tests/tcctest.c+8−0
@@ -2900,7 +2900,15 @@ int cmpfn(); · 2899 unmodified lines
29002900
29012901 void old_style_function_test(void)
29022902 {
2903+#if CC_NAME == CC_clang
2904+ /* recent clang versions (at least 15.0) raise an error:
2905+ incompatible pointer to integer conversion passing 'void *'
2906+ For the purpose of this test, pass 1 instead.
2907+ */
2908+ old_style_f(1, 2, 3.0);
2909+#else
29032910 old_style_f((void *)1, 2, 3.0);
2911+#endif
29042912 decl_func1(NULL);
29052913 decl_func2(NULL);
29062914 }

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