xref: /llvm-project/llvm/test/DebugInfo/X86/atomic-c11-dwarf-4.ll (revision 01cee921abe924ae98027ce599d3c76ca5780a38)
1*01cee921SDavid Blaikie; RUN: llc -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s
2e1156c2eSVictor Leschuk
3e1156c2eSVictor Leschuk; Generated by clang -c -g -std=c11 -S -emit-llvm from the following C11 source
4e1156c2eSVictor Leschuk;
5e1156c2eSVictor Leschuk; _Atomic const int i;
6e1156c2eSVictor Leschuk;
7e1156c2eSVictor Leschuk
8e1156c2eSVictor Leschuk; CHECK: DW_TAG_variable
9e1156c2eSVictor Leschuk; CHECK: DW_TAG_const_type
10e1156c2eSVictor Leschuk; CHECK-NOT: DW_TAG_atomic_type
11e1156c2eSVictor Leschuk; CHECK: DW_TAG_base_type
12e1156c2eSVictor Leschuk
13e1156c2eSVictor Leschuk; ModuleID = 'atomic.c'
14e1156c2eSVictor Leschuksource_filename = "atomic.c"
15e1156c2eSVictor Leschuktarget datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
16e1156c2eSVictor Leschuktarget triple = "x86_64-unknown-linux-gnu"
17e1156c2eSVictor Leschuk
18e1156c2eSVictor Leschuk@i = common global i32 0, align 4, !dbg !0
19e1156c2eSVictor Leschuk
201eadba1cSAdrian Prantl!llvm.dbg.cu = !{!2}
21e1156c2eSVictor Leschuk!llvm.module.flags = !{!9, !10}
22e1156c2eSVictor Leschuk!llvm.ident = !{!11}
23e1156c2eSVictor Leschuk
2405782218SAdrian Prantl!0 = distinct !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
251eadba1cSAdrian Prantl!1 = !DIGlobalVariable(name: "i", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)
26693d39ddSJames Y Knight!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)
271eadba1cSAdrian Prantl!3 = !DIFile(filename: "atomic.c", directory: "/tmp")
281eadba1cSAdrian Prantl!4 = !{}
291eadba1cSAdrian Prantl!5 = !{!0}
30e1156c2eSVictor Leschuk!6 = !DIDerivedType(tag: DW_TAG_const_type, baseType: !7)
31e1156c2eSVictor Leschuk!7 = !DIDerivedType(tag: DW_TAG_atomic_type, baseType: !8)
32e1156c2eSVictor Leschuk!8 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
33e1156c2eSVictor Leschuk!9 = !{i32 2, !"Dwarf Version", i32 4}
34e1156c2eSVictor Leschuk!10 = !{i32 2, !"Debug Info Version", i32 3}
35693d39ddSJames Y Knight!11 = !{!"clang version 4.0.0"}
361eadba1cSAdrian Prantl
37