[clang] [clang][bytecode] Reject all function calls in C (PR #175920)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 14 08:00:16 PST 2026


================
@@ -411,3 +411,9 @@ _Static_assert((((I64){}, 1)), ""); // all-warning {{left operand of comma opera
 char func_(void);
 typedef V(2) char VC2;
 void CopyArrayToFnPtr(void) { *(VC2 *)func_ = C2; }
+
+_Complex double returnsComplex(); // pedantic-warning {{a function declaration without a prototype is deprecated in all versions of C}}
+void callReturnsComplex(void) {
+  _Complex double c;
+  c = foo(0.);
----------------
AaronBallman wrote:

This doesn't call `returnsComplex()` is that intentional?

https://github.com/llvm/llvm-project/pull/175920


More information about the cfe-commits mailing list