[lld][WebAssembly] Reinstate mistakenly disabled test. NFC
[llvm-project.git] / clang / test / Integration / thinlto_profile_sample_accurate.c
blobb756829439cf7b3054610f05522dba761c184f3d
1 // XFAIL: 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() {