Author: Timm Baeder
Date: 2026-01-15T07:48:28+01:00
New Revision: a6ada9e0d75817e0526c265769b34a239539b42d

URL: 
https://github.com/llvm/llvm-project/commit/a6ada9e0d75817e0526c265769b34a239539b42d
DIFF: 
https://github.com/llvm/llvm-project/commit/a6ada9e0d75817e0526c265769b34a239539b42d.diff

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

This was supposed to call callReturnsComplex().

Added: 
    

Modified: 
    clang/test/AST/ByteCode/c.c

Removed: 
    


################################################################################
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}}
 }


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

Reply via email to