1; This file is checked-in as a .bc file, because the debug info version is
2; intentionally out-of-date and llvm-as will drop it before writing the bitcode
3
4target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
5target triple = "x86_64-apple-macosx10.11.0"
6
7
8@argc = global i8 0, align 1
9
10define void @globalfunc() {
11entry:
12  %0 = load i8, i8* @argc, align 1
13  tail call void @llvm.dbg.value(metadata i8 %0, i64 0, metadata !19, metadata !29), !dbg !DILocation(scope: !13)
14  ret void
15}
16
17
18declare void @llvm.dbg.value(metadata, i64, metadata, metadata)
19
20!llvm.dbg.cu = !{!0}
21!llvm.module.flags = !{!22, !23}
22
23!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, enums: !2, retainedTypes: !3, globals: !20, imports: !2, emissionKind: FullDebug)
24!1 = !DIFile(filename: "test.cpp", directory: "")
25!2 = !{}
26!3 = !{!4}
27!4 = !DICompositeType(tag: DW_TAG_class_type, name: "C", line: 2, size: 8, align: 8, file: !1, elements: !5, identifier: "_ZTS1C")
28!5 = !{!6}
29!6 = !DISubprogram(name: "test", file: !1, scope: !4, type: !7, isDefinition: false)
30!7 = !DISubroutineType(types: !8)
31!8 = !{!9, !10, !11, !11, !11, null}
32!9 = !DIBasicType(encoding: DW_ATE_signed, size: 32, align: 32, name: "int")
33!10 = !DIDerivedType(baseType: !4, tag: DW_TAG_pointer_type, size: 64, align: 64, flags: DIFlagArtificial)
34!11 = !DIBasicType(tag: DW_TAG_base_type, name: "char", size: 8, align: 8, encoding: DW_ATE_signed_char)
35!13 = distinct !DISubprogram(name: "test_with_debug", linkageName: "test_with_debug", line: 6, isLocal: false, isDefinition: true, flags: DIFlagPrototyped, isOptimized: true, unit: !0, scopeLine: 6, file: !1, scope: !14, type: !15, variables: !17)
36!14 = !DIFile(filename: "test.cpp", directory: "")
37!15 = !DISubroutineType(types: !16)
38!16 = !{null}
39!17 = !{!18, !19}
40!18 = !DILocalVariable(name: "c", line: 7, scope: !13, file: !14, type: !4)
41!19 = !DILocalVariable(name: "lc", line: 8, scope: !13, file: !14, type: !11)
42!20 = !{!21}
43!21 = !DIGlobalVariable(name: "argc", line: 1, isLocal: false, isDefinition: true, scope: null, file: !14, type: !11, variable: i8* @argc)
44!22 = !{i32 2, !"Dwarf Version", i32 4}
45!23 = !{i32 2, !"Debug Info Version", i32 0}
46!25 = !DILocation(line: 8, column: 3, scope: !13)
47!29 = !DIExpression()
48