Files
clang-p2996/compiler-rt/test/profile/AIX/function-section-bcdtor-mbr.c
2022-10-26 14:41:06 +00:00

10 lines
302 B
C

// 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