brintos

brintos / llvm-project-archived public Read only

0
0
Text · 697 B · 05b471c Raw
20 lines · plain
1; Test that we get appropriate error when parsing summary with unbalanced2; parentheses.3; RUN: not opt %s 2>&1 | FileCheck %s4 5; CHECK: error: found end of file while parsing summary entry6 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 uwtable12define i32 @main() #0 {13entry:14    ret i32 115}16 17^0 = module: (path: "{{.*}}thinlto-bad-summary1.ll", hash: (0, 0, 0, 0, 0))18; Missing a ')'19^1 = gv: (name: "main", summaries: (function: (module: ^0, flags: (linkage: external, notEligibleToImport: 0, live: 0, dsoLocal: 0), insts: 1)) ; guid = 1582266305281194956220