1;; This test checks whether DWARF tag DW_TAG_immutable_type 2;; is accepted and processed. 3; REQUIRES: object-emission 4; RUN: %llc_dwarf %s -filetype=obj -o - | llvm-dwarfdump - | FileCheck %s 5 6;; Test whether DW_TAG_immutable_type is accepted. 7 8; CHECK: DW_TAG_immutable_type 9 10; ModuleID = 'immutable.d' 11source_filename = "immutable.d" 12target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128" 13 14@_D9immutable1aya = constant i8 97, align 1, !dbg !0 ; [#uses = 0] 15 16!llvm.module.flags = !{!5} 17!llvm.dbg.cu = !{!6} 18!llvm.ident = !{!13} 19 20!0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression()) 21!1 = distinct !DIGlobalVariable(name: "a", linkageName: "_D9immutable1aya", scope: !2, file: !3, line: 1, type: !4, isLocal: false, isDefinition: true) 22!2 = !DIModule(scope: !3, name: "immutable") 23!3 = !DIFile(filename: "immutable.d", directory: "/home/luis/Temp") 24!4 = !DIDerivedType(tag: DW_TAG_immutable_type, baseType: !14) 25!5 = !{i32 2, !"Debug Info Version", i32 3} 26!6 = distinct !DICompileUnit(language: DW_LANG_D, file: !3, producer: "LDC 1.28.0 (LLVM 13.0.0)", isOptimized: false, runtimeVersion: 1, emissionKind: FullDebug, enums: !7, globals: !8, imports: !9) 27!7 = !{} 28!8 = !{!0} 29!9 = !{!10} 30!10 = !DIImportedEntity(tag: DW_TAG_imported_module, scope: !2, entity: !11, file: !3) 31!11 = !DIModule(scope: !12, name: "object") 32!12 = !DIFile(filename: "usr/include/dlang/ldc/object.d", directory: "/") 33!13 = !{!"ldc version 1.28.0"} 34!14 = !DIBasicType(name: "char", size: 8, encoding: DW_ATE_UTF) 35