xref: /minix3/external/bsd/llvm/dist/llvm/test/DebugInfo/X86/dbg-file-name.ll (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
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 {
9  ret i32 0
10}
11
12!llvm.dbg.cu = !{!2}
13!llvm.module.flags = !{!12}
14
15!1 = !{!"0x29", !10} ; [ DW_TAG_file_type ]
16!2 = !{!"0x11\001\00LLVM build 00\001\00\000\00\000", !10, !11, !11, !9, null, null} ; [ DW_TAG_compile_unit ]
17!5 = !{!"0x24\00int\000\0032\0032\000\000\005", !10, !1} ; [ DW_TAG_base_type ]
18!6 = !{!"0x2e\00main\00main\00main\009\000\001\000\006\00256\000\000", !10, !1, !7, null, i32 ()* @main, null, null, null} ; [ DW_TAG_subprogram ]
19!7 = !{!"0x15\00\000\000\000\000\000\000", !10, !1, null, !8, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
20!8 = !{!5}
21!9 = !{!6}
22!10 = !{!"simple.c", !"/Users/manav/one/two"}
23!11 = !{i32 0}
24!12 = !{i32 1, !"Debug Info Version", i32 2}
25