Teresa Johnson | a9a2147 | 2018-05-26 02:34:13 +0000 | [diff] [blame] | 1 | ; Test that we get appropriate error when parsing summary with a missing |
| 2 | ; summary type label. |
Teresa Johnson | c6dda90 | 2018-06-26 13:56:49 +0000 | [diff] [blame] | 3 | ; RUN: not opt %s 2>&1 | FileCheck %s |
Teresa Johnson | a9a2147 | 2018-05-26 02:34:13 +0000 | [diff] [blame] | 4 | |
Teresa Johnson | c6dda90 | 2018-06-26 13:56:49 +0000 | [diff] [blame] | 5 | ; CHECK: error: Expected 'gv', 'module', or 'typeid' at the start of summary entry |
Teresa Johnson | a9a2147 | 2018-05-26 02:34:13 +0000 | [diff] [blame] | 6 | |
| 7 | ; ModuleID = 'thinlto-function-summary-callgraph.ll' |
| 8 | target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" |
| 9 | target triple = "x86_64-unknown-linux-gnu" |
| 10 | |
| 11 | ; Function Attrs: nounwind uwtable |
| 12 | define i32 @main() #0 { |
| 13 | entry: |
| 14 | ret i32 1 |
| 15 | } |
| 16 | |
Teresa Johnson | 2a70cfb | 2018-05-26 03:50:29 +0000 | [diff] [blame] | 17 | ^0 = module: (path: "{{.*}}thinlto-bad-summary1.ll", hash: (0, 0, 0, 0, 0)) |
Teresa Johnson | a9a2147 | 2018-05-26 02:34:13 +0000 | [diff] [blame] | 18 | ^1 = () |