blob: 70548b1fa41f4bab7a0a88f462acb803f515ff41 [file] [log] [blame]
Peter Collingbournea1390022016-06-14 23:13:15 +00001; RUN: not llvm-as %s -disable-output 2>&1 | FileCheck %s
2
Peter Collingbournece947192016-06-21 23:42:48 +00003; CHECK: function declaration may not have a !prof attachment
4declare !prof !0 void @f1()
5
6define void @f2() !prof !0 {
Peter Collingbournea1390022016-06-14 23:13:15 +00007 unreachable
8}
9
10; CHECK: function must have a single !prof attachment
Peter Collingbournece947192016-06-21 23:42:48 +000011define void @f3() !prof !0 !prof !0 {
Peter Collingbournea1390022016-06-14 23:13:15 +000012 unreachable
13}
14
Dehao Chen191ffc12017-02-28 18:09:44 +000015!0 = !{!"function_entry_count", i64 100}