llvm-project/llvm/test/Verifier/diexpression-entry-value.ll

8 lines
307 B
LLVM

; RUN: not opt -S < %s 2>&1 | FileCheck %s
!named = !{!0, !1, !2}
; CHECK: invalid expression
!0 = !DIExpression(DW_OP_entry_value, 4, DW_OP_constu, 0, DW_OP_stack_value)
!1 = !DIExpression(DW_OP_constu, 0, DW_OP_entry_value, 1, DW_OP_constu, 0)
!2 = !DIExpression(DW_OP_entry_value, 100, DW_OP_constu, 0)