1 // RUN: %clang -### -c -fprofile-use=a.profdata -fcs-profile-generate %s 2>&1 | FileCheck %s 2 // CHECK: "-fprofile-instrument=csllvm" 3 // CHECK-NOT: "-fprofile-instrument-path= 4 // CHECK-SAME: "-fprofile-instrument-use-path=a.profdata" 5 6 // RUN: %clang -### -c -fprofile-use=a.profdata -fcs-profile-generate=dir %s 2>&1 | FileCheck %s --check-prefix=CHECK1 7 // CHECK1: "-fprofile-instrument=csllvm"{{.*}} "-fprofile-instrument-path=dir{{/|\\\\}}default_%m.profraw" "-fprofile-instrument-use-path=a.profdata" 8 9 /// Degradation case. This usage does not make much sense. 10 // RUN: %clang -### -c -fcs-profile-generate %s 2>&1 | FileCheck %s --check-prefix=NOUSE 11 // NOUSE: "-fprofile-instrument=csllvm" 12 // NOUSE-NOT: "-fprofile-instrument-path= 13 14 // RUN: not %clang -### -c -fprofile-generate -fcs-profile-generate %s 2>&1 | FileCheck %s --check-prefix=CONFLICT 15 // CONFLICT: error: invalid argument '-fcs-profile-generate' not allowed with '-fprofile-generate' 16