1 ; RUN: not llvm-as %s -disable-output 2>&1 | FileCheck %s 2 3 define void @foo() !dbg !4 !dbg !4 { 4 unreachable 5 } 6 7 ; CHECK-NOT: !dbg 8 ; CHECK: function !dbg attachment must be a subprogram 9 ; CHECK-NEXT: void ()* @bar 10 ; CHECK-NEXT: !{{[0-9]+}} = !{} 11 define void @bar() !dbg !6 { 12 unreachable 13 } 14 15 !llvm.module.flags = !{!0} 16 !0 = !{i32 2, !"Debug Info Version", i32 3} 17 18 !llvm.dbg.cu = !{!1} 19 !1 = distinct !DICompileUnit(language: DW_LANG_C99, file: !2, subprograms: !3) 20 !2 = !DIFile(filename: "t.c", directory: "/path/to/dir") 21 !3 = !{!4} 22 !4 = distinct !DISubprogram(name: "foo", scope: !1, file: !2) 23 !6 = !{} 24