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

source code of compiler-rt/test/profile/AIX/function-section-bcdtor-mbr.c