1 ; RUN: llvm-as -disable-output < %s -o /dev/null 2>&1 | FileCheck %s
3 define void @f() #0 !dbg !6 {
4 br label %1, !dbg !9, !llvm.loop !10
9 !llvm.module.flags = !{!2, !3, !4}
11 !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1)
12 !1 = !DIFile(filename: "f.c", directory: "./")
13 !2 = !{i32 2, !"Dwarf Version", i32 4}
14 !3 = !{i32 2, !"Debug Info Version", i32 3}
15 !4 = !{i32 7, !"PIC Level", i32 2}
16 !6 = distinct !DISubprogram(name: "f", scope: !1, file: !1, line: 7, type: !7, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0)
17 !7 = !DISubroutineType(types: !8)
19 !9 = !DILocation(line: 18, column: 2, scope: !6)
20 !10 = distinct !{!10, !11}
21 !11 = !DILocation(line: 18, column: 2, scope: !12)
22 !12 = distinct !DISubprogram(name: "f", scope: !1, file: !1, line: 7, type: !7, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !13)
24 ; CHECK: warning: ignoring invalid debug info
25 ; This CU isn't listed in llvm.dbg.cu
26 !13 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1)