aboutsummaryrefslogtreecommitdiff
path: root/test/Verifier/metadata-function-prof.ll
blob: 70548b1fa41f4bab7a0a88f462acb803f515ff41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
; RUN: not llvm-as %s -disable-output 2>&1 | FileCheck %s

; CHECK: function declaration may not have a !prof attachment
declare !prof !0 void @f1()

define void @f2() !prof !0 {
  unreachable
}

; CHECK: function must have a single !prof attachment
define void @f3() !prof !0 !prof !0 {
  unreachable
}

!0 = !{!"function_entry_count", i64 100}