// Test that function entry counts are set correctly.
// RUN: llvm-profdata merge %S/Inputs/func-entry.proftext -o %t.profdata
// RUN: %clang_cc1 %s -o - -disable-llvm-passes -emit-llvm -fprofile-instrument-use-path=%t.profdata | FileCheck %s
void ;
// CHECK: @foo() #{{[0-9]}} !prof [[FOO:![0-9]+]]
void
// CHECK: @main() #{{[0-9]}} !prof [[MAIN:![0-9]+]]
int
// CHECK: [[FOO]] = !{!"function_entry_count", i64 1000}
// CHECK: [[MAIN]] = !{!"function_entry_count", i64 1}