blob: 2fffac846ff9b82c75004c5a5328b81b5907db4a [file]
; RUN: llvm-as -disable-output <%s 2>&1 | FileCheck %s
; CHECK: invalid #dbg record expression
; CHECK-NEXT: #dbg_value({{.*}})
; CHECK-NEXT: !{}
; CHECK: warning: ignoring invalid debug info
define void @foo(i32 %a) {
entry:
%s = alloca i32
#dbg_value(ptr %s, !DILocalVariable(scope: !1), !{}, !DILocation(scope: !1))
ret void
}
!llvm.module.flags = !{!0}
!0 = !{i32 2, !"Debug Info Version", i32 3}
!1 = distinct !DISubprogram(type: !3)
!2 = !{null}
!3 = !DISubroutineType(types: !2)