2016-02-05 02:39:09 +08:00
|
|
|
// Check that the -fprofile-instrument-path= form works.
|
|
|
|
// RUN: %clang_cc1 -main-file-name c-generate.c %s -o - -emit-llvm -fprofile-instrument=clang -fprofile-instrument-path=c-generate-test.profraw | FileCheck %s --check-prefix=PROF-INSTR-PATH
|
|
|
|
// RUN: %clang_cc1 %s -o - -emit-llvm -fprofile-instrument=none | FileCheck %s --check-prefix=PROF-INSTR-NONE
|
|
|
|
// RUN: not %clang_cc1 %s -o - -emit-llvm -fprofile-instrument=garbage 2>&1 | FileCheck %s --check-prefix=PROF-INSTR-GARBAGE
|
|
|
|
//
|
2016-07-22 07:19:39 +08:00
|
|
|
// PROF-INSTR-PATH: constant [24 x i8] c"c-generate-test.profraw\00"
|
2016-02-05 02:39:09 +08:00
|
|
|
//
|
2017-02-18 09:50:14 +08:00
|
|
|
// PROF-INSTR-NONE-NOT: __llvm_prf
|
|
|
|
//
|
2016-02-05 02:39:09 +08:00
|
|
|
// PROF-INSTR-GARBAGE: invalid PGO instrumentor in argument '-fprofile-instrument=garbage'
|
2015-05-01 07:49:42 +08:00
|
|
|
|
|
|
|
int main(void) {
|
|
|
|
return 0;
|
|
|
|
}
|