Peter Collingbourne | a139002 | 2016-06-14 23:13:15 +0000 | [diff] [blame] | 1 | ; RUN: not llvm-as %s -disable-output 2>&1 | FileCheck %s |
| 2 | |
Peter Collingbourne | ce94719 | 2016-06-21 23:42:48 +0000 | [diff] [blame] | 3 | ; CHECK: function declaration may not have a !prof attachment |
| 4 | declare !prof !0 void @f1() |
| 5 | |
| 6 | define void @f2() !prof !0 { |
Peter Collingbourne | a139002 | 2016-06-14 23:13:15 +0000 | [diff] [blame] | 7 | unreachable |
| 8 | } |
| 9 | |
| 10 | ; CHECK: function must have a single !prof attachment |
Peter Collingbourne | ce94719 | 2016-06-21 23:42:48 +0000 | [diff] [blame] | 11 | define void @f3() !prof !0 !prof !0 { |
Peter Collingbourne | a139002 | 2016-06-14 23:13:15 +0000 | [diff] [blame] | 12 | unreachable |
| 13 | } |
| 14 | |
Dehao Chen | 191ffc1 | 2017-02-28 18:09:44 +0000 | [diff] [blame] | 15 | !0 = !{!"function_entry_count", i64 100} |