llvm-for-llvmta/tools/clang/test/CodeGen/profile-sample-accurate.c

8 lines
256 B
C
Raw Normal View History

2022-04-25 13:02:35 +02:00
// Test to ensure -emit-llvm profile-sample-accurate is honored by clang.
// RUN: %clang -S -emit-llvm %s -fprofile-sample-accurate -o - | FileCheck %s
// CHECK: define{{.*}} void @foo()
// CHECK: attributes{{.*}} "profile-sample-accurate"
void foo() {
}