108d5b4efSTeresa Johnson; Test that we get appropriate error when parsing summary with unbalanced
208d5b4efSTeresa Johnson; parentheses.
3*63ee0e73STeresa Johnson; RUN: not opt %s 2>&1 | FileCheck %s
408d5b4efSTeresa Johnson
508d5b4efSTeresa Johnson; CHECK: error: found end of file while parsing summary entry
608d5b4efSTeresa Johnson
708d5b4efSTeresa Johnson; ModuleID = 'thinlto-function-summary-callgraph.ll'
808d5b4efSTeresa Johnsontarget datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
908d5b4efSTeresa Johnsontarget triple = "x86_64-unknown-linux-gnu"
1008d5b4efSTeresa Johnson
1108d5b4efSTeresa Johnson; Function Attrs: nounwind uwtable
1208d5b4efSTeresa Johnsondefine i32 @main() #0 {
1308d5b4efSTeresa Johnsonentry:
1408d5b4efSTeresa Johnson    ret i32 1
1508d5b4efSTeresa Johnson}
1608d5b4efSTeresa Johnson
17fb89e7a9STeresa Johnson^0 = module: (path: "{{.*}}thinlto-bad-summary1.ll", hash: (0, 0, 0, 0, 0))
1808d5b4efSTeresa Johnson; Missing a ')'
1908d5b4efSTeresa Johnson^1 = gv: (name: "main", summaries: (function: (module: ^0, flags: (linkage: external, notEligibleToImport: 0, live: 0, dsoLocal: 0), insts: 1)) ; guid = 15822663052811949562
20