37 lines · plain
1; RUN: opt < %s -passes=dfsan -dfsan-abilist=%S/Inputs/debuglist.txt -S | FileCheck %s2 3; CHECK: define i32 @main() {{.*}} !dbg [[SP:![0-9]+]]4; CHECK: [[SP]] = distinct !DISubprogram(name: "main"5 6; Generated from a simple source file compiled with clang -g:7; int main() {8; }9 10target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"11target triple = "x86_64-unknown-linux-gnu"12 13; Function Attrs: nounwind uwtable14define i32 @main() #0 !dbg !4 {15entry:16 ret i32 0, !dbg !1217}18 19attributes #0 = { nounwind uwtable "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }20 21!llvm.dbg.cu = !{!0}22!llvm.module.flags = !{!9, !10}23!llvm.ident = !{!11}24 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")27!2 = !{}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)31!7 = !{!8}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)37