[clang] [clang][bytecode] Fix wrong function call in test case (PR #176085)

via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 14 20:59:25 PST 2026


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Timm Baeder (tbaederr)

<details>
<summary>Changes</summary>

This was supposed to call callReturnsComplex().

---
Full diff: https://github.com/llvm/llvm-project/pull/176085.diff


1 Files Affected:

- (modified) clang/test/AST/ByteCode/c.c (+1-1) 


``````````diff
diff --git a/clang/test/AST/ByteCode/c.c b/clang/test/AST/ByteCode/c.c
index 749e2c1af32ef..8c1a4ba46e229 100644
--- a/clang/test/AST/ByteCode/c.c
+++ b/clang/test/AST/ByteCode/c.c
@@ -415,5 +415,5 @@ 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.);
+  c = callReturnsComplex(0.);
 }

``````````

</details>


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


More information about the cfe-commits mailing list