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