10 lines · c
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.o3// RUN: llvm-lto -thinlto -o %t %t.o4// RUN: %clang_cc1 -O2 -x ir %t.o -fthinlto-index=%t.thinlto.bc -emit-llvm -o - | FileCheck %s5 6// CHECK: define{{.*}} void @foo()7// CHECK: attributes{{.*}} "profile-sample-accurate"8void foo(void) {9}10