DI: Reverse direction of subprogram -> function edge.
[oota-llvm.git] / test / DebugInfo / Generic / constantfp-sdnodes-have-dbg-location.ll
1 ; RUN: llc -debug -dag-dump-verbose < %s 2>&1 | FileCheck %s
2 ; REQUIRES: asserts
3
4 ; CHECK: t{{[0-9]+}}: f64 = ConstantFP<1.500000e+00>test.c:3:5
5
6 define double @f() !dbg !4 {
7 entry:
8   ret double 1.500000e+00, !dbg !10
9 }
10
11 !llvm.dbg.cu = !{!0}
12 !llvm.module.flags = !{!8, !9}
13
14 !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "", isOptimized: false, subprograms: !3)
15 !1 = !DIFile(filename: "test.c", directory: "/home/user/clang-llvm/build")
16 !2 = !{}
17 !3 = !{!4}
18 !4 = distinct !DISubprogram(name: "f", scope: !1, file: !1, line: 1, type: !5, isLocal: false, isDefinition: true, scopeLine: 2, flags: DIFlagPrototyped, isOptimized: false, variables: !2)
19 !5 = !DISubroutineType(types: !6)
20 !6 = !{!7}
21 !7 = !DIBasicType(name: "double", size: 64, align: 64, encoding: DW_ATE_float)
22 !8 = !{i32 2, !"Dwarf Version", i32 4}
23 !9 = !{i32 2, !"Debug Info Version", i32 3}
24 !10 = !DILocation(line: 3, column: 5, scope: !4)