xref: /llvm-project/clang/test/Driver/fprofile-generate-cold-function-coverage.c (revision bef3b54ea10a564a2de72f658f2efd64f537c079)
1*bef3b54eSLei Wang // RUN: %clang -### -c -fprofile-generate-cold-function-coverage %s 2>&1 | FileCheck %s
2*bef3b54eSLei Wang // CHECK: "--instrument-cold-function-only-path=default_%m.profraw"
3*bef3b54eSLei Wang // CHECK: "--pgo-instrument-cold-function-only"
4*bef3b54eSLei Wang // CHECK: "--pgo-function-entry-coverage"
5*bef3b54eSLei Wang // CHECK-NOT:  "-fprofile-instrument"
6*bef3b54eSLei Wang // CHECK-NOT:  "-fprofile-instrument-path=
7*bef3b54eSLei Wang 
8*bef3b54eSLei Wang // RUN: %clang -### -c -fprofile-generate-cold-function-coverage=dir %s 2>&1 | FileCheck %s --check-prefix=CHECK-EQ
9*bef3b54eSLei Wang // CHECK-EQ: "--instrument-cold-function-only-path=dir{{/|\\\\}}default_%m.profraw"
10