xref: /llvm-project/compiler-rt/test/profile/AIX/function-section-bcdtor-mbr.c (revision aceb67eeb516fd4ca762de6bd8194ca7f31c9f45)
1 // RUN: rm -f %t.profraw
2 // RUN: %clang_pgogen -ffunction-sections -Wl,-bcdtors:mbr %s -o %t.gen
3 // RUN: env LLVM_PROFILE_FILE=%t.profraw %run %t.gen
4 // RUN: llvm-profdata show %t.profraw --all-functions | FileCheck %s
5 
foo()6 int foo() { return 0; }
main()7 int main() { return foo();}
8 
9 // CHECK: Total functions: 2
10