[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Integration / thinlto_profile_sample_accurate.c
blob8821ca76336f2bfb04a537a7c6404684b1af5dde
1 // XFAIL: target={{.*}}-aix{{.*}}
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
8 // CHECK: define{{.*}} void @foo()
9 // CHECK: attributes{{.*}} "profile-sample-accurate"
10 void foo(void) {