blob: 0ac48fa49b99d3f708024b9a18caaa471a7cae0f [file] [log] [blame]
// RUN: rm -f %t.profraw
// RUN: %clang_pgogen -ffunction-sections -Wl,-bcdtors:mbr %s -o %t.gen
// RUN: env LLVM_PROFILE_FILE=%t.profraw %run %t.gen
// RUN: llvm-profdata show %t.profraw --all-functions | FileCheck %s
int foo() { return 0; }
int main() { return foo();}
// CHECK: Total functions: 2