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

This was supposed to call callReturnsComplex().

>From 9549aae0085ff984a976c72d451536c4572352a4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?= <[email protected]>
Date: Thu, 15 Jan 2026 05:58:06 +0100
Subject: [PATCH] [clang][bytecode] Fix wrong function call in test case

This was supposed to call callReturnsComplex().
---
 clang/test/AST/ByteCode/c.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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.);
 }

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to