aboutsummaryrefslogtreecommitdiff
path: root/libc/test
diff options
context:
space:
mode:
authorSchrodinger ZHU Yifan <yifanzhu@rochester.edu>2024-06-14 15:59:42 -0700
committerGitHub <noreply@github.com>2024-06-14 15:59:42 -0700
commitc091dd48008ba6d85aee68227077ee05daeb7ca7 (patch)
treea8620a466472e68a0283831919ee49083ccc461b /libc/test
parent8f7d30abb243d5383171861bd5ee443d95b2a338 (diff)
downloadllvm-c091dd48008ba6d85aee68227077ee05daeb7ca7.zip
llvm-c091dd48008ba6d85aee68227077ee05daeb7ca7.tar.gz
llvm-c091dd48008ba6d85aee68227077ee05daeb7ca7.tar.bz2
[libc] fix build errors (#95613)
Diffstat (limited to 'libc/test')
-rw-r--r--libc/test/integration/src/pthread/CMakeLists.txt1
-rw-r--r--libc/test/integration/src/pthread/pthread_rwlock_test.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/libc/test/integration/src/pthread/CMakeLists.txt b/libc/test/integration/src/pthread/CMakeLists.txt
index 16a1ff6..fa5fd3a 100644
--- a/libc/test/integration/src/pthread/CMakeLists.txt
+++ b/libc/test/integration/src/pthread/CMakeLists.txt
@@ -53,6 +53,7 @@ add_integration_test(
libc.src.sys.wait.waitpid
libc.src.stdlib.exit
libc.src.__support.CPP.atomic
+ libc.src.__support.CPP.new
libc.src.__support.threads.sleep
)
diff --git a/libc/test/integration/src/pthread/pthread_rwlock_test.cpp b/libc/test/integration/src/pthread/pthread_rwlock_test.cpp
index a2ae228..9175efe 100644
--- a/libc/test/integration/src/pthread/pthread_rwlock_test.cpp
+++ b/libc/test/integration/src/pthread/pthread_rwlock_test.cpp
@@ -7,6 +7,7 @@
//===----------------------------------------------------------------------===//
#include "src/__support/CPP/atomic.h"
+#include "src/__support/CPP/new.h"
#include "src/__support/OSUtil/syscall.h"
#include "src/__support/threads/linux/raw_mutex.h"
#include "src/__support/threads/linux/rwlock.h"