Unified · Split
| @@ -2900,7 +2900,15 @@ int cmpfn(); · 2899 unmodified lines | ||
| 2900 | 2900 | |
| 2901 | 2901 | void 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 | 2910 | old_style_f((void *)1, 2, 3.0); |
| 2911 | +#endif | |
| 2904 | 2912 | decl_func1(NULL); |
| 2905 | 2913 | decl_func2(NULL); |
| 2906 | 2914 | } |