xref: /llvm-project/clang/test/CodeGen/profile-sample-accurate.c (revision adc402bf3d0565ac2bc7efbdd05f0d846e818041)
1 // Test to ensure -emit-llvm profile-sample-accurate is honored by clang.
2 // RUN: %clang -S -emit-llvm %s -fprofile-sample-accurate -o - | FileCheck %s
3 
4 // CHECK: define{{.*}} void @foo()
5 // CHECK: attributes{{.*}} "profile-sample-accurate"
foo(void)6 void foo(void) {
7 }
8