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
2900 2900
2901void old_style_function_test(void)2901void old_style_function_test(void)
2902{2902{
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
2903 old_style_f((void *)1, 2, 3.0);2910 old_style_f((void *)1, 2, 3.0);
2911#endif
2904 decl_func1(NULL);2912 decl_func1(NULL);
2905 decl_func2(NULL);2913 decl_func2(NULL);
2906}2914}

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