1 // Test -fprofile-generate-cold-function-coverage
3 // RUN: rm -rf %t && split-file %s %t
4 // RUN: %clang --target=x86_64 -O2 -fprofile-generate-cold-function-coverage=/xxx/yyy/ -fprofile-sample-accurate -fprofile-sample-use=%t/pgo-cold-func.prof -S -emit-llvm -o - %t/pgo-cold-func.c | FileCheck %s
6 // CHECK: @__llvm_profile_filename = {{.*}} c"/xxx/yyy/default_%m.profraw\00"
8 // CHECK: store i8 0, ptr @__profc_bar, align 1
9 // CHECK-NOT: @__profc_foo
11 //--- pgo-cold-func.prof
16 int bar(int x
) { return x
;}