summaryrefslogtreecommitdiffstats
path: root/llvm/test/Verifier/metadata-function-prof.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Verifier/metadata-function-prof.ll')
-rw-r--r--llvm/test/Verifier/metadata-function-prof.ll7
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/test/Verifier/metadata-function-prof.ll b/llvm/test/Verifier/metadata-function-prof.ll
index ca0628f44f8..d84a7fe5440 100644
--- a/llvm/test/Verifier/metadata-function-prof.ll
+++ b/llvm/test/Verifier/metadata-function-prof.ll
@@ -1,11 +1,14 @@
; RUN: not llvm-as %s -disable-output 2>&1 | FileCheck %s
-define void @foo() !prof !0 {
+; 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 @foo2() !prof !0 !prof !0 {
+define void @f3() !prof !0 !prof !0 {
unreachable
}
OpenPOWER on IntegriCloud