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()6int foo() { return 0; } main()7int main() { return foo();} 8 9 // CHECK: Total functions: 2 10