2016-06-15 07:13:15 +08:00
|
|
|
; RUN: not llvm-as %s -disable-output 2>&1 | FileCheck %s
|
|
|
|
|
2016-06-22 07:42:48 +08:00
|
|
|
; CHECK: function declaration may not have a !prof attachment
|
|
|
|
declare !prof !0 void @f1()
|
|
|
|
|
|
|
|
define void @f2() !prof !0 {
|
2016-06-15 07:13:15 +08:00
|
|
|
unreachable
|
|
|
|
}
|
|
|
|
|
|
|
|
; CHECK: function must have a single !prof attachment
|
2016-06-22 07:42:48 +08:00
|
|
|
define void @f3() !prof !0 !prof !0 {
|
2016-06-15 07:13:15 +08:00
|
|
|
unreachable
|
|
|
|
}
|
|
|
|
|
|
|
|
!0 = !{}
|