[libc-commits] [libc] f6e5f90 - [libc] Fix undeclared 'free' function in stream test

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Thu May 11 10:49:52 PDT 2023


Author: Joseph Huber
Date: 2023-05-11T12:49:40-05:00
New Revision: f6e5f90fd4bb4cde6705a78cf748c992bcaac222

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

LOG: [libc] Fix undeclared 'free' function in stream test

Summary:
We need this function from the test.cpp but need to declare it manually.

Added: 
    

Modified: 
    libc/test/integration/startup/gpu/rpc_stream_test.cpp

Removed: 
    


################################################################################
diff  --git a/libc/test/integration/startup/gpu/rpc_stream_test.cpp b/libc/test/integration/startup/gpu/rpc_stream_test.cpp
index 877ded34b1aa..3d495b4df994 100644
--- a/libc/test/integration/startup/gpu/rpc_stream_test.cpp
+++ b/libc/test/integration/startup/gpu/rpc_stream_test.cpp
@@ -15,6 +15,7 @@
 #include "test/IntegrationTest/test.h"
 
 extern "C" void *malloc(uint64_t);
+extern "C" void free(void *);
 
 using namespace __llvm_libc;
 


        


More information about the libc-commits mailing list