1 ; RUN: opt -S <%s 2>&1| FileCheck %s 2 ; CHECK: ignoring debug info with an invalid version (0) 3 4 ; CHECK: @Var = internal global i32 0 5 ; CHECK-NOT: !dbg 6 @Var = internal global i32 0, !dbg !0 7 8 ; Test that StripDebugInfo strips global variables. 9 10 ; CHECK-NOT: DIGlobalVariable 11 12 !0 = !DIGlobalVariable(name: "Var", line: 2, isLocal: true, isDefinition: true, scope: !1, file: !3, type: !2) 13 !1 = distinct !DICompileUnit(language: DW_LANG_C89, producer: "adrian", isOptimized: true, emissionKind: FullDebug, file: !3) 14 !2 = !DIBasicType(tag: DW_TAG_base_type, name: "int", size: 32, align: 32, encoding: DW_ATE_signed) 15 !3 = !DIFile(filename: "var.c", directory: "/") 16