llvm-project
26 строк · 1.4 Кб
1; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s
2; CHECK-DAG: [[MD:![0-9]+]] = !DICommonBlock({{.*}}name: "a"
3; CHECK-DAG: !DIGlobalVariable({{.*}}name: "c",{{.*}}scope: [[MD]]
4
5@common_a = common global [32 x i8] zeroinitializer, align 8, !dbg !13, !dbg !15
6
7!llvm.dbg.cu = !{!0}
8!llvm.module.flags = !{!6, !7}
9!llvm.ident = !{!8}
10
11!0 = distinct !DICompileUnit(language: DW_LANG_Fortran90, file: !1, producer: "PGI Fortran", isOptimized: false, runtimeVersion: 2, emissionKind: FullDebug, retainedTypes: !14, globals: !3)
12!1 = !DIFile(filename: "none.f90", directory: "/not/here/")
13!2 = distinct !DIGlobalVariable(scope: !5, name: "c", file: !1, type: !12, isDefinition: true)
14!3 = !{!13, !15}
15!4 = distinct !DIGlobalVariable(scope: !5, name: "COMMON /foo/", file: !1, line: 4, isLocal: false, isDefinition: true, type: !12)
16!5 = !DICommonBlock(scope: !9, declaration: !4, name: "a", file: !1, line: 4)
17!6 = !{i32 2, !"Dwarf Version", i32 4}
18!7 = !{i32 2, !"Debug Info Version", i32 3}
19!8 = !{!"PGI Fortran"}
20!9 = distinct !DISubprogram(name: "subrtn", scope: !0, file: !1, line: 1, type: !10, isLocal: false, isDefinition: true, unit: !0)
21!10 = !DISubroutineType(types: !11)
22!11 = !{!12, !12}
23!12 = !DIBasicType(name: "int", size: 32)
24!13 = !DIGlobalVariableExpression(var: !4, expr: !DIExpression())
25!14 = !{!12, !10}
26!15 = !DIGlobalVariableExpression(var: !2, expr: !DIExpression(DW_OP_plus_uconst, 4))
27