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