2020-11-25 09:45:47 +08:00
; RUN: llc -filetype=obj < %s | llvm-dwarfdump -debug-info - | FileCheck %s
2016-11-01 03:09:38 +08:00
; Generated by clang -c -g -std=c11 -S -emit-llvm from the following C11 source
;
; _Atomic const int i;
;
; CHECK: DW_TAG_variable
; CHECK: DW_TAG_const_type
; CHECK: DW_TAG_atomic_type
; CHECK-NOT: NULL
; CHECK: DW_TAG_base_type
; ModuleID = 'atomic.c'
source_filename = "atomic.c"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
@i = common global i32 0 , align 4 , !dbg !0
2016-12-22 08:45:21 +08:00
!llvm.dbg.cu = ! { !2 }
2016-11-01 03:09:38 +08:00
!llvm.module.flags = ! { !9 , !10 }
!llvm.ident = ! { !11 }
2017-08-31 02:06:51 +08:00
!0 = distinct !DIGlobalVariableExpression ( var: !1 , expr: !DIExpression ( ) )
2016-12-22 08:45:21 +08:00
!1 = !DIGlobalVariable ( name: "i" , scope: !2 , file: !3 , line: 1 , type: !6 , isLocal: false , isDefinition: true )
2019-01-16 00:18:52 +08:00
!2 = distinct !DICompileUnit ( language: D W _ L A N G _ C 99 , file: !3 , producer: "clang version 4.0.0" , isOptimized: false , runtimeVersion: 0 , emissionKind: F u l l D e b u g , enums: !4 , globals: !5 )
2016-12-22 08:45:21 +08:00
!3 = !DIFile ( filename: "atomic.c" , directory: "/tmp" )
!4 = ! { }
!5 = ! { !0 }
2016-11-01 03:09:38 +08:00
!6 = !DIDerivedType ( tag: D W _ T A G _ c o n s t _ type , baseType: !7 )
!7 = !DIDerivedType ( tag: D W _ T A G _ a t o m i c _ type , baseType: !8 )
!8 = !DIBasicType ( name: "int" , size: 32 , encoding: D W _ A T E _ s i g n e d )
!9 = ! { i32 2 , !"Dwarf Version" , i32 5 }
!10 = ! { i32 2 , !"Debug Info Version" , i32 3 }
2019-01-16 00:18:52 +08:00
!11 = ! { !"clang version 4.0.0" }
2016-12-22 08:45:21 +08:00