1 ; RUN: %llc_dwarf -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s
2 ; REQUIRES: object-emission
4 ; Generated by clang -S -c -std=c++11 --emit-llvm -g from the following C11 source:
9 ; CHECK: DW_TAG_subprogram
11 ; CHECK: DW_AT_name{{.*}}"f"
13 ; CHECK: DW_AT_noreturn
15 ; ModuleID = './test.c'
16 source_filename = "./test.c"
17 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
18 target triple = "x86_64-unknown-linux-gnu"
20 ; Function Attrs: noreturn
21 define void @f() #0 !dbg !6 {
23 call void @exit(i32 0) #2, !dbg !10
26 return: ; No predecessors!
30 ; Function Attrs: noreturn
31 declare void @exit(i32) #1
33 attributes #0 = { noreturn }
36 !llvm.module.flags = !{!3, !4}
39 !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 4.0.0", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2)
40 !1 = !DIFile(filename: "test.c", directory: "/home/del/test")
42 !3 = !{i32 2, !"Dwarf Version", i32 4}
43 !4 = !{i32 2, !"Debug Info Version", i32 3}
44 !5 = !{!"clang version 4.0.0"}
45 !6 = distinct !DISubprogram(name: "f", scope: !7, file: !7, line: 3, type: !8, isLocal: false, isDefinition: true, scopeLine: 4, flags: DIFlagNoReturn, isOptimized: false, unit: !0, retainedNodes: !2)
46 !7 = !DIFile(filename: "./test.c", directory: "/home/del/test")
47 !8 = !DISubroutineType(types: !9)
49 !10 = !DILocation(line: 5, column: 3, scope: !6)
50 !11 = !DILocation(line: 6, column: 1, scope: !6)