brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 820182d Raw
37 lines · plain
1; RUN: llc -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s2 3; Generated by clang -c -g -std=c11 -S -emit-llvm from the following C11 source4;5; _Atomic const int i;6;7 8; CHECK: DW_TAG_variable9; CHECK: DW_TAG_const_type10; CHECK-NOT: DW_TAG_atomic_type11; CHECK: DW_TAG_base_type12 13; ModuleID = 'atomic.c'14source_filename = "atomic.c"15target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"16target triple = "x86_64-unknown-linux-gnu"17 18@i = common global i32 0, align 4, !dbg !019 20!llvm.dbg.cu = !{!2}21!llvm.module.flags = !{!9, !10}22!llvm.ident = !{!11}23 24!0 = distinct !DIGlobalVariableExpression(var: !1, expr: !DIExpression())25!1 = !DIGlobalVariable(name: "i", scope: !2, file: !3, line: 1, type: !6, isLocal: false, isDefinition: true)26!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)27!3 = !DIFile(filename: "atomic.c", directory: "/tmp")28!4 = !{}29!5 = !{!0}30!6 = !DIDerivedType(tag: DW_TAG_const_type, baseType: !7)31!7 = !DIDerivedType(tag: DW_TAG_atomic_type, baseType: !8)32!8 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)33!9 = !{i32 2, !"Dwarf Version", i32 4}34!10 = !{i32 2, !"Debug Info Version", i32 3}35!11 = !{!"clang version 4.0.0"}36 37