Dehao Chen | 5e97f23 | 2017-08-24 21:37:33 +0000 | [diff] [blame] | 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 | |||||
Hans Wennborg | 8f1559c | 2017-08-30 23:26:38 +0000 | [diff] [blame] | 4 | // CHECK: define{{.*}} void @foo() |
5 | // CHECK: attributes{{.*}} "profile-sample-accurate" | ||||
Dehao Chen | 5e97f23 | 2017-08-24 21:37:33 +0000 | [diff] [blame] | 6 | void foo() { |
7 | } |