1 ; RUN: opt < %s -dfsan -dfsan-abilist=%S/Inputs/debuglist.txt -S | FileCheck %s
3 ; CHECK: define i32 @main() {{.*}} !dbg [[SP:![0-9]+]]
4 ; CHECK: [[SP]] = distinct !DISubprogram(name: "main"
6 ; Generated from a simple source file compiled with clang -g:
10 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
11 target triple = "x86_64-unknown-linux-gnu"
13 ; Function Attrs: nounwind uwtable
14 define i32 @main() #0 !dbg !4 {
19 attributes #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" }
22 !llvm.module.flags = !{!9, !10}
25 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, producer: "clang version 3.6.0 ", isOptimized: false, emissionKind: FullDebug, file: !1, enums: !2, retainedTypes: !2, globals: !2, imports: !2)
26 !1 = !DIFile(filename: "debug.cpp", directory: "/tmp/dbginfo")
28 !4 = distinct !DISubprogram(name: "main", line: 1, isLocal: false, isDefinition: true, flags: DIFlagPrototyped, isOptimized: false, unit: !0, scopeLine: 1, file: !1, scope: !5, type: !6, retainedNodes: !2)
29 !5 = !DIFile(filename: "debug.cpp", directory: "/tmp/dbginfo")
30 !6 = !DISubroutineType(types: !7)
32 !8 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
33 !9 = !{i32 2, !"Dwarf Version", i32 4}
34 !10 = !{i32 2, !"Debug Info Version", i32 3}
35 !11 = !{!"clang version 3.6.0 "}
36 !12 = !DILocation(line: 2, column: 1, scope: !4)