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