xref: /llvm-project/clang/test/Profile/c-generate.c (revision ce8c59e6af487f0b8786ae921aa926341f0ae04f)
19837ef56SRong Xu // Check that the -fprofile-instrument-path= form works.
29837ef56SRong Xu // 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
39837ef56SRong Xu // RUN: %clang_cc1 %s -o - -emit-llvm -fprofile-instrument=none | FileCheck %s --check-prefix=PROF-INSTR-NONE
49837ef56SRong Xu // RUN: not %clang_cc1 %s -o - -emit-llvm -fprofile-instrument=garbage 2>&1 | FileCheck %s --check-prefix=PROF-INSTR-GARBAGE
59837ef56SRong Xu //
69081de2eSXinliang David Li // PROF-INSTR-PATH: constant [24 x i8] c"c-generate-test.profraw\00"
79837ef56SRong Xu //
8a32c08d3SVedant Kumar // PROF-INSTR-NONE-NOT: __llvm_prf
9a32c08d3SVedant Kumar //
10*ce8c59e6SJan Svoboda // PROF-INSTR-GARBAGE: invalid value 'garbage' in '-fprofile-instrument=garbage'
11a71e6817SJustin Bogner 
main(void)12a71e6817SJustin Bogner int main(void) {
13a71e6817SJustin Bogner   return 0;
14a71e6817SJustin Bogner }
15