2018-05-26 10:34:13 +08:00
|
|
|
; Test that we get appropriate error when parsing summary with a missing
|
|
|
|
; summary type label.
|
2018-06-26 21:56:49 +08:00
|
|
|
; RUN: not opt %s 2>&1 | FileCheck %s
|
2018-05-26 10:34:13 +08:00
|
|
|
|
2020-07-21 00:50:22 +08:00
|
|
|
; CHECK: error: Expected 'gv', 'module', 'typeid', 'flags' or 'blockcount' at the start of summary entry
|
2018-05-26 10:34:13 +08:00
|
|
|
|
|
|
|
; ModuleID = 'thinlto-function-summary-callgraph.ll'
|
|
|
|
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
|
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
|
|
|
|
; Function Attrs: nounwind uwtable
|
|
|
|
define i32 @main() #0 {
|
|
|
|
entry:
|
|
|
|
ret i32 1
|
|
|
|
}
|
|
|
|
|
2018-05-26 11:50:29 +08:00
|
|
|
^0 = module: (path: "{{.*}}thinlto-bad-summary1.ll", hash: (0, 0, 0, 0, 0))
|
2018-05-26 10:34:13 +08:00
|
|
|
^1 = ()
|