diff options
Diffstat (limited to 'clang/test/Integration/thinlto_profile_sample_accurate.c')
-rw-r--r-- | clang/test/Integration/thinlto_profile_sample_accurate.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Integration/thinlto_profile_sample_accurate.c b/clang/test/Integration/thinlto_profile_sample_accurate.c new file mode 100644 index 00000000000..d7966c215cb --- /dev/null +++ b/clang/test/Integration/thinlto_profile_sample_accurate.c @@ -0,0 +1,9 @@ +// Test to ensure -emit-llvm profile-sample-accurate is honored in ThinLTO. +// RUN: %clang -O2 %s -flto=thin -fprofile-sample-accurate -c -o %t.o +// RUN: llvm-lto -thinlto -o %t %t.o +// RUN: %clang_cc1 -O2 -x ir %t.o -fthinlto-index=%t.thinlto.bc -emit-llvm -o - | FileCheck %s + +// CHECK: define void @foo() +// CHECK: attributes {{.*}} "profile-sample-accurate" +void foo() { +} |