Home | History | Annotate | Download | only in Profile
      1 // Check that the -fprofile-instr-generate= form works.
      2 // RUN: %clang_cc1 -main-file-name c-generate.c %s -o - -emit-llvm -fprofile-instr-generate=c-generate-test.profraw | FileCheck %s
      3 
      4 // CHECK: private constant [24 x i8] c"c-generate-test.profraw\00"
      5 // CHECK: call void @__llvm_profile_override_default_filename(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @0, i32 0, i32 0))
      6 // CHECK: declare void @__llvm_profile_override_default_filename(i8*)
      7 
      8 int main(void) {
      9   return 0;
     10 }
     11