aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Driver/fprofile-generate-cold-function-coverage.c
blob: b42ed26329c0269177082adfbfed28f2531543e4 (plain)
1
2
3
4
5
6
7
8
9
// RUN: %clang -### -c -fprofile-generate-cold-function-coverage %s 2>&1 | FileCheck %s
// CHECK: "--instrument-cold-function-only-path=default_%m.profraw" 
// CHECK: "--pgo-instrument-cold-function-only"
// CHECK: "--pgo-function-entry-coverage"
// CHECK:  "-fprofile-instrument=sample-coldcov"
// CHECK-NOT:  "-fprofile-instrument-path=

// RUN: %clang -### -c -fprofile-generate-cold-function-coverage=dir %s 2>&1 | FileCheck %s --check-prefix=CHECK-EQ
// CHECK-EQ: "--instrument-cold-function-only-path=dir{{/|\\\\}}default_%m.profraw"