blob: 1fe755f0f77197f1cafe99617d9712fcda9f5611 [file] [log] [blame]
Adrian Prantl7bc1b282017-09-11 22:59:45 +00001; RUN: %llc_dwarf -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s
Victor Leschuke1156c22016-10-31 19:09:38 +00002; REQUIRES: object-emission
3
4; Generated by clang -c -g -std=c11 -S -emit-llvm from the following C11 source
5;
6; _Atomic const int i;
7;
8
9; CHECK: DW_TAG_variable
10; CHECK: DW_TAG_const_type
11; CHECK: DW_TAG_atomic_type
12; CHECK-NOT: NULL
13; CHECK: DW_TAG_base_type
14
15; ModuleID = 'atomic.c'
16source_filename = "atomic.c"
17target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
18target triple = "x86_64-unknown-linux-gnu"
19
20@i = common global i32 0, align 4, !dbg !0
21
Adrian Prantl1eadba12016-12-22 00:45:21 +000022!llvm.dbg.cu = !{!2}
Victor Leschuke1156c22016-10-31 19:09:38 +000023!llvm.module.flags = !{!9, !10}
24!llvm.ident = !{!11}
25
Adrian Prantl05782212017-08-30 18:06:51 +000026!0 = distinct !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
Adrian Prantl1eadba12016-12-22 00:45:21 +000027!1 = !DIGlobalVariable(name: "i", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)
James Y Knight693d39d2019-01-15 16:18:52 +000028!2 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, producer: "clang version 4.0.0", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !5)
Adrian Prantl1eadba12016-12-22 00:45:21 +000029!3 = !DIFile(filename: "atomic.c", directory: "/tmp")
30!4 = !{}
31!5 = !{!0}
Victor Leschuke1156c22016-10-31 19:09:38 +000032!6 = !DIDerivedType(tag: DW_TAG_const_type, baseType: !7)
33!7 = !DIDerivedType(tag: DW_TAG_atomic_type, baseType: !8)
34!8 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
35!9 = !{i32 2, !"Dwarf Version", i32 5}
36!10 = !{i32 2, !"Debug Info Version", i32 3}
James Y Knight693d39d2019-01-15 16:18:52 +000037!11 = !{!"clang version 4.0.0"}
Adrian Prantl1eadba12016-12-22 00:45:21 +000038