1; RUN: llvm-dis -o - %s.bc | FileCheck %s 2 3; CHECK: @g = common global i32 0, align 4, !dbg ![[G:[0-9]+]] 4; CHECK: @h = common global i32 0, align 4, !dbg ![[H:[0-9]+]] 5; CHECK: ![[G]] = {{.*}}!DIGlobalVariableExpression(var: ![[GVAR:[0-9]+]], expr: ![[GEXPR:[0-9]+]]) 6; CHECK: ![[GVAR]] = distinct !DIGlobalVariable(name: "g", 7; CHECK: !DIGlobalVariableExpression(var: ![[CVAR:[0-9]+]], expr: ![[CEXPR:[0-9]+]]) 8; CHECK: ![[CVAR]] = distinct !DIGlobalVariable(name: "c", 9; CHECK: ![[CEXPR]] = !DIExpression(DW_OP_constu, 23, DW_OP_stack_value) 10; CHECK: ![[H]] = {{.*}}!DIGlobalVariableExpression(var: ![[HVAR:[0-9]+]]) 11; CHECK: ![[HVAR]] = distinct !DIGlobalVariable(name: "h", 12; CHECK: ![[GEXPR]] = !DIExpression(DW_OP_plus, 1) 13@g = common global i32 0, align 4, !dbg !0 14@h = common global i32 0, align 4, !dbg !11 15 16!llvm.dbg.cu = !{!1} 17!llvm.module.flags = !{!6, !7, !8} 18!llvm.ident = !{!9} 19 20!0 = distinct !DIGlobalVariable(name: "g", scope: !1, file: !2, line: 1, type: !5, isLocal: false, isDefinition: true, expr: !DIExpression(DW_OP_plus, 1)) 21!1 = distinct !DICompileUnit(language: DW_LANG_C99, file: !2, producer: "clang version 4.0.0 (trunk 286129) (llvm/trunk 286128)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !3, globals: !4) 22!2 = !DIFile(filename: "a.c", directory: "/") 23!3 = !{} 24!4 = !{!0, !10, !11} 25!5 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed) 26!6 = !{i32 2, !"Dwarf Version", i32 4} 27!7 = !{i32 2, !"Debug Info Version", i32 3} 28!8 = !{i32 1, !"PIC Level", i32 2} 29!9 = !{!"clang version 4.0.0 (trunk 286129) (llvm/trunk 286128)"} 30!10 = distinct !DIGlobalVariable(name: "c", scope: !1, file: !2, line: 1, type: !5, isLocal: false, isDefinition: true, expr: !DIExpression(DW_OP_constu, 23, DW_OP_stack_value)) 31!11 = distinct !DIGlobalVariable(name: "h", scope: !1, file: !2, line: 2, type: !5, isLocal: false, isDefinition: true) 32