forked from OSchip/llvm-project
[NFC][memprof] Compile *.c tests as C
This commit is contained in:
parent
170b70b74b
commit
4a91118793
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue