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: DW_TAG_atomic_type 11e1156c2eSVictor Leschuk; CHECK-NOT: NULL 12e1156c2eSVictor Leschuk; CHECK: DW_TAG_base_type 13e1156c2eSVictor Leschuk 14e1156c2eSVictor Leschuk; ModuleID = 'atomic.c' 15e1156c2eSVictor Leschuksource_filename = "atomic.c" 16e1156c2eSVictor Leschuktarget datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 17e1156c2eSVictor Leschuktarget triple = "x86_64-unknown-linux-gnu" 18e1156c2eSVictor Leschuk 19e1156c2eSVictor Leschuk@i = common global i32 0, align 4, !dbg !0 20e1156c2eSVictor Leschuk 211eadba1cSAdrian Prantl!llvm.dbg.cu = !{!2} 22e1156c2eSVictor Leschuk!llvm.module.flags = !{!9, !10} 23e1156c2eSVictor Leschuk!llvm.ident = !{!11} 24e1156c2eSVictor Leschuk 2505782218SAdrian Prantl!0 = distinct !DIGlobalVariableExpression(var: !1, expr: !DIExpression()) 261eadba1cSAdrian Prantl!1 = !DIGlobalVariable(name: "i", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true) 27693d39ddSJames 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) 281eadba1cSAdrian Prantl!3 = !DIFile(filename: "atomic.c", directory: "/tmp") 291eadba1cSAdrian Prantl!4 = !{} 301eadba1cSAdrian Prantl!5 = !{!0} 31e1156c2eSVictor Leschuk!6 = !DIDerivedType(tag: DW_TAG_const_type, baseType: !7) 32e1156c2eSVictor Leschuk!7 = !DIDerivedType(tag: DW_TAG_atomic_type, baseType: !8) 33e1156c2eSVictor Leschuk!8 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) 34e1156c2eSVictor Leschuk!9 = !{i32 2, !"Dwarf Version", i32 5} 35e1156c2eSVictor Leschuk!10 = !{i32 2, !"Debug Info Version", i32 3} 36693d39ddSJames Y Knight!11 = !{!"clang version 4.0.0"} 371eadba1cSAdrian Prantl 38