[compiler-rt] 4a91118 - [NFC][memprof] Compile *.c tests as C

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 4 23:16:56 PDT 2021


Author: Vitaly Buka
Date: 2021-06-04T23:16:42-07:00
New Revision: 4a91118793391ca529ba1f686a98d405f95ce3ac

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

LOG: [NFC][memprof] Compile *.c tests as C

Added: 
    

Modified: 
    compiler-rt/test/memprof/TestCases/stress_dtls.c
    compiler-rt/test/memprof/TestCases/test_malloc_load_store.c

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/memprof/TestCases/stress_dtls.c b/compiler-rt/test/memprof/TestCases/stress_dtls.c
index bf5a85858572..0cabf0dc0f54 100644
--- a/compiler-rt/test/memprof/TestCases/stress_dtls.c
+++ b/compiler-rt/test/memprof/TestCases/stress_dtls.c
@@ -1,10 +1,10 @@
 // REQUIRES: memprof-64-bits
 // Stress test dynamic TLS + dlopen + threads.
 //
-// RUN: %clangxx_memprof -x c -DSO_NAME=f0 %s -shared -o %t-f0.so -fPIC
-// RUN: %clangxx_memprof -x c -DSO_NAME=f1 %s -shared -o %t-f1.so -fPIC
-// RUN: %clangxx_memprof -x c -DSO_NAME=f2 %s -shared -o %t-f2.so -fPIC
-// RUN: %clangxx_memprof %s -ldl -pthread -o %t
+// RUN: %clang_memprof -x c -DSO_NAME=f0 %s -shared -o %t-f0.so -fPIC
+// RUN: %clang_memprof -x c -DSO_NAME=f1 %s -shared -o %t-f1.so -fPIC
+// RUN: %clang_memprof -x c -DSO_NAME=f2 %s -shared -o %t-f2.so -fPIC
+// RUN: %clang_memprof %s -ldl -pthread -o %t
 // RUN: %run %t 0 3
 // RUN: %run %t 2 3
 // RUN: %env_memprof_opts=log_path=stderr:verbosity=2 %run %t 10 2 2>&1 | FileCheck %s

diff  --git a/compiler-rt/test/memprof/TestCases/test_malloc_load_store.c b/compiler-rt/test/memprof/TestCases/test_malloc_load_store.c
index 85890b6420f7..697c2b7eec47 100644
--- a/compiler-rt/test/memprof/TestCases/test_malloc_load_store.c
+++ b/compiler-rt/test/memprof/TestCases/test_malloc_load_store.c
@@ -2,10 +2,10 @@
 // we get the same profile regardless of whether the memory is deallocated
 // before exit.
 
-// RUN: %clangxx_memprof -O0 %s -o %t
+// RUN: %clang_memprof -O0 %s -o %t
 // RUN: %env_memprof_opts=log_path=stderr %run %t 2>&1 | FileCheck %s
 
-// RUN: %clangxx_memprof -DFREE -O0 %s -o %t
+// RUN: %clang_memprof -DFREE -O0 %s -o %t
 // RUN: %env_memprof_opts=log_path=stderr %run %t 2>&1 | FileCheck %s
 
 // This is actually:


        


More information about the llvm-commits mailing list