llvm-project/llvm/test/Assembler/summary-parsing-error.ll
Nikita Popov dfd36aa70e [AsmParser] Gracefully handle non-existent GV summary reference
If the module summary references a global variable that does not
exist, throw a nice error instead of asserting.

Fixes https://github.com/llvm/llvm-project/issues/74726.
2023-12-07 17:00:44 +01:00

5 lines
135 B
LLVM

; RUN: not llvm-as < %s 2>&1 | FileCheck %s
; CHECK: Reference to undefined global "does_not_exist"
^0 = gv: (name: "does_not_exist")