• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Test that __llvm_profile_set_filename is honored by shared libary too.
2RUN: mkdir -p %t.d
3RUN: %clang_profgen=%t.shared.profraw -fPIC -shared -o %t.d/t.shared %S/../Inputs/instrprof-dlopen-func.c
4RUN: %clang_profgen -DCALL_SHARED -o %t.m -O3 -rpath %t.d %t.d/t.shared %S/../instrprof-set-filename.c
5RUN: %run %t.m %t.main.profraw
6RUN: llvm-profdata show %t.main.profraw | FileCheck --check-prefix=SHARED %s
7
8# SHARED: Total functions: 2
9