[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Integration / thinlto_profile_sample_accurate.c
blobb8ddde89d9dc6899d75d2138d6f94bfbc6319a39
1 // Test to ensure -emit-llvm profile-sample-accurate is honored in ThinLTO.
2 // RUN: %clang -O2 %s -flto=thin -fprofile-sample-accurate -c -o %t.o
3 // RUN: llvm-lto -thinlto -o %t %t.o
4 // RUN: %clang_cc1 -O2 -x ir %t.o -fthinlto-index=%t.thinlto.bc -emit-llvm -o - | FileCheck %s
6 // CHECK: define{{.*}} void @foo()
7 // CHECK: attributes{{.*}} "profile-sample-accurate"
8 void foo(void) {