1 ; RUN: llvm-as -disable-output <%s 2>&1 | FileCheck %s
2 ; CHECK: invalid llvm.dbg.declare intrinsic variable
3 ; CHECK-NEXT: call void @llvm.dbg.declare({{.*}})
5 ; CHECK: warning: ignoring invalid debug info
7 define void @foo(i32 %a) {
10 call void @llvm.dbg.declare(metadata ptr %s, metadata !"", metadata !DIExpression()), !dbg !DILocation(scope: !1)
14 declare void @llvm.dbg.declare(metadata, metadata, metadata)
16 !llvm.module.flags = !{!0}
17 !0 = !{i32 2, !"Debug Info Version", i32 3}
18 !1 = distinct !DISubprogram()