1; RUN: llc -enable-dwarf-directory -mtriple x86_64-apple-darwin10.0.0  < %s | FileCheck %s
2
3; Radar 8884898
4; CHECK: file	1 "simple.c"
5
6declare i32 @printf(i8*, ...) nounwind
7
8define i32 @main() nounwind !dbg !6 {
9  ret i32 0
10}
11
12!llvm.dbg.cu = !{!2}
13!llvm.module.flags = !{!12}
14
15!1 = !DIFile(filename: "simple.c", directory: "/Users/manav/one/two")
16!2 = distinct !DICompileUnit(language: DW_LANG_C89, producer: "LLVM build 00", isOptimized: true, emissionKind: 0, file: !10, enums: !11, retainedTypes: !11, subprograms: !9)
17!5 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
18!6 = distinct !DISubprogram(name: "main", linkageName: "main", line: 9, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, file: !10, scope: !1, type: !7)
19!7 = !DISubroutineType(types: !8)
20!8 = !{!5}
21!9 = !{!6}
22!10 = !DIFile(filename: "simple.c", directory: "/Users/manav/one/two")
23!11 = !{}
24!12 = !{i32 1, !"Debug Info Version", i32 3}
25