1 ; RUN: llvm-as -disable-output < %s 2>&1 | FileCheck %s
3 ; The lengths for None and MD5 are wrong; SHA1 has a non-hex digit.
4 ; CHECK: invalid checksum{{$}}
5 ; CHECK: invalid checksum length
6 ; CHECK: warning: ignoring invalid debug info in <stdin>
8 @t1 = global i32 1, align 4, !dbg !0
9 @t2 = global i32 0, align 4, !dbg !6
12 !llvm.module.flags = !{!11, !12, !13}
15 !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression())
16 !1 = distinct !DIGlobalVariable(name: "t1", scope: !2, file: !10, line: 1, type: !9, isLocal: false, isDefinition: true)
17 !2 = distinct !DICompileUnit(language: DW_LANG_C99, file: !3, producer: "clang version 7.0.0 (trunk 322159)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !4, globals: !5)
18 !3 = !DIFile(filename: "t.c", directory: "/scratch")
21 !6 = !DIGlobalVariableExpression(var: !7, expr: !DIExpression())
22 !7 = distinct !DIGlobalVariable(name: "t2", scope: !2, file: !8, line: 1, type: !9, isLocal: false, isDefinition: true)
23 !8 = !DIFile(filename: "./t2.h", directory: "/scratch", checksumkind: CSK_MD5, checksum: "2222")
24 !9 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)
25 !10 = !DIFile(filename: "./t1.h", directory: "/scratch", checksumkind: CSK_SHA1, checksum: "123456789012345678901234567890123456789.")
26 !11 = !{i32 2, !"Dwarf Version", i32 4}
27 !12 = !{i32 2, !"Debug Info Version", i32 3}
28 !13 = !{i32 1, !"wchar_size", i32 4}
29 !14 = !{!"clang version 7.0.0 (trunk 322159)"}