1 // XFAIL: aix 2 3 // Test to ensure -emit-llvm profile-sample-accurate is honored in ThinLTO. 4 // RUN: %clang -O2 %s -flto=thin -fprofile-sample-accurate -c -o %t.o 5 // RUN: llvm-lto -thinlto -o %t %t.o 6 // RUN: %clang_cc1 -O2 -x ir %t.o -fthinlto-index=%t.thinlto.bc -emit-llvm -o - | FileCheck %s 7 8 // CHECK: define{{.*}} void @foo() 9 // CHECK: attributes{{.*}} "profile-sample-accurate" 10 void foo() { 11 } 12