xref: /aosp_15_r20/external/compiler-rt/test/profile/Linux/instrprof-alloc.test (revision 7c3d14c8b49c529e04be81a3ce6f5cc23712e4c6)
1// RUN: %clang_profgen -Xclang -fprofile-instrument=llvm  -fuse-ld=gold -Wl,-wrap,malloc -Wl,-wrap,calloc -o %t -O3 %S/../Inputs/instrprof-alloc.c
2// RUN: env LLVM_PROFILE_FILE=%t.profraw %run %t
3
4// RUN: %clang_profgen  -Xclang -fprofile-instrument=llvm -mllvm -vp-static-alloc=false -fuse-ld=gold -Wl,-wrap,malloc -Wl,-wrap,calloc -o %t.dyn -O3 %S/../Inputs/instrprof-alloc.c
5// RUN: env LLVM_PROFILE_FILE=%t.profraw not %run %t.dyn
6
7