xref: /minix3/external/bsd/llvm/dist/llvm/test/Instrumentation/DataFlowSanitizer/debug.ll (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1; RUN: opt < %s -dfsan -dfsan-abilist=%S/Inputs/debuglist.txt -S | FileCheck %s
2
3; CHECK: i32 ()* @main, {{.*}} ; [ DW_TAG_subprogram ] {{.*}} [main]
4
5; Generated from a simple source file compiled with clang -g:
6; int main() {
7; }
8
9target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
10target triple = "x86_64-unknown-linux-gnu"
11
12; Function Attrs: nounwind uwtable
13define i32 @main() #0 {
14entry:
15  ret i32 0, !dbg !12
16}
17
18attributes #0 = { nounwind uwtable "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
19
20!llvm.dbg.cu = !{!0}
21!llvm.module.flags = !{!9, !10}
22!llvm.ident = !{!11}
23
24!0 = !{!"0x11\004\00clang version 3.6.0 \000\00\000\00\001", !1, !2, !2, !3, !2, !2} ; [ DW_TAG_compile_unit ] [/tmp/dbginfo/debug.cpp] [DW_LANG_C_plus_plus]
25!1 = !{!"debug.cpp", !"/tmp/dbginfo"}
26!2 = !{}
27!3 = !{!4}
28!4 = !{!"0x2e\00main\00main\00\001\000\001\000\000\00256\000\001", !1, !5, !6, null, i32 ()* @main, null, null, !2} ; [ DW_TAG_subprogram ] [line 1] [def] [main]
29!5 = !{!"0x29", !1}    ; [ DW_TAG_file_type ] [/tmp/dbginfo/debug.cpp]
30!6 = !{!"0x15\00\000\000\000\000\000\000", null, null, null, !7, null, null, null} ; [ DW_TAG_subroutine_type ] [line 0, size 0, align 0, offset 0] [from ]
31!7 = !{!8}
32!8 = !{!"0x24\00int\000\0032\0032\000\000\005", null, null} ; [ DW_TAG_base_type ] [int] [line 0, size 32, align 32, offset 0, enc DW_ATE_signed]
33!9 = !{i32 2, !"Dwarf Version", i32 4}
34!10 = !{i32 2, !"Debug Info Version", i32 2}
35!11 = !{!"clang version 3.6.0 "}
36!12 = !MDLocation(line: 2, column: 1, scope: !4)
37