1; RUN: %llc_dwarf -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s 2; 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-NOT: DW_TAG_atomic_type 12; CHECK: DW_TAG_base_type 13 14; ModuleID = 'atomic.c' 15source_filename = "atomic.c" 16target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 17target triple = "x86_64-unknown-linux-gnu" 18 19@i = common global i32 0, align 4, !dbg !0 20 21!llvm.dbg.cu = !{!2} 22!llvm.module.flags = !{!9, !10} 23!llvm.ident = !{!11} 24 25!0 = distinct !DIGlobalVariableExpression(var: !1, expr: !DIExpression()) 26!1 = !DIGlobalVariable(name: "i", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true) 27!2 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, producer: "clang version 4.0.0 (http://llvm.org/git/clang.git cd238117e3a8a57271a82d0bb03d6df6ad8f073e) (http://llvm.org/git/llvm.git 9fd063832c1541aad3907cd60ac344d36997905f)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !5) 28!3 = !DIFile(filename: "atomic.c", directory: "/tmp") 29!4 = !{} 30!5 = !{!0} 31!6 = !DIDerivedType(tag: DW_TAG_const_type, baseType: !7) 32!7 = !DIDerivedType(tag: DW_TAG_atomic_type, baseType: !8) 33!8 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) 34!9 = !{i32 2, !"Dwarf Version", i32 4} 35!10 = !{i32 2, !"Debug Info Version", i32 3} 36!11 = !{!"clang version 4.0.0 (http://llvm.org/git/clang.git cd238117e3a8a57271a82d0bb03d6df6ad8f073e) (http://llvm.org/git/llvm.git 9fd063832c1541aad3907cd60ac344d36997905f)"} 37 38