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

Timm Baeder via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 14 21:51:03 PST 2026


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

>From f03e469d76a1914e1b14ebd9b4e9bfe40b7ab6d1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?= <tbaeder at redhat.com>
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 returnsComplex().
---
 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..67a47fdcc9523 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 = returnsComplex(0.); // all-warning {{passing arguments to 'returnsComplex' without a prototype is deprecated in all versions of C and is not supported in C23}}
 }



More information about the cfe-commits mailing list