191db11c9SWael Yehia // XFAIL: aix
291db11c9SWael Yehia
35e97f234SDehao Chen // Test to ensure -emit-llvm profile-sample-accurate is honored in ThinLTO.
45e97f234SDehao Chen // RUN: %clang -O2 %s -flto=thin -fprofile-sample-accurate -c -o %t.o
55e97f234SDehao Chen // RUN: llvm-lto -thinlto -o %t %t.o
65e97f234SDehao Chen // RUN: %clang_cc1 -O2 -x ir %t.o -fthinlto-index=%t.thinlto.bc -emit-llvm -o - | FileCheck %s
75e97f234SDehao Chen
8aa25e5baSDouglas Yung // CHECK: define{{.*}} void @foo()
95e97f234SDehao Chen // CHECK: attributes{{.*}} "profile-sample-accurate"
foo(void)10*7de71613SAaron Ballman void foo(void) {
115e97f234SDehao Chen }
12