17 lines · plain
1; RUN: llvm-as -disable-output <%s 2>&1 | FileCheck %s2; CHECK: invalid #dbg record expression3; CHECK-NEXT: #dbg_declare({{.*}})4; CHECK-NEXT: !{}5; CHECK: warning: ignoring invalid debug info6 7define void @foo(i32 %a) {8entry:9 %s = alloca i3210 #dbg_declare(ptr %s, !DILocalVariable(scope: !1), !{}, !DILocation(scope: !1))11 ret void12}13 14!llvm.module.flags = !{!0}15!0 = !{i32 2, !"Debug Info Version", i32 3}16!1 = distinct !DISubprogram()17