1 ; Test that DIFile(checksumkind, checksum) representation in Bitcode does
4 ; RUN: llvm-dis < %s.bc | FileCheck %s
5 ; RUN: verify-uselistorder < %s.bc
7 !llvm.dbg.cu = !{!1, !2, !3}
8 !llvm.module.flags = !{!7}
10 !1 = distinct !DICompileUnit(language: DW_LANG_C99, file: !4, producer: "clang version 5.0.1 (tags/RELEASE_501/final)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug)
11 !2 = distinct !DICompileUnit(language: DW_LANG_C99, file: !5, producer: "clang version 5.0.1 (tags/RELEASE_501/final)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug)
12 !3 = distinct !DICompileUnit(language: DW_LANG_C99, file: !6, producer: "clang version 5.0.1 (tags/RELEASE_501/final)", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug)
13 ; CHECK: !DIFile(filename: "a.c", directory: "/test")
14 !4 = !DIFile(filename: "a.c", directory: "/test", checksumkind: CSK_None, checksum: "")
15 ; CHECK: !DIFile(filename: "b.h", directory: "/test", checksumkind: CSK_MD5, checksum: "595f44fec1e92a71d3e9e77456ba80d1")
16 !5 = !DIFile(filename: "b.h", directory: "/test", checksumkind: CSK_MD5, checksum: "595f44fec1e92a71d3e9e77456ba80d1")
17 ; CHECK: !DIFile(filename: "c.h", directory: "/test", checksumkind: CSK_SHA1, checksum: "d5db29cd03a2ed055086cef9c31c252b4587d6d0")
18 !6 = !DIFile(filename: "c.h", directory: "/test", checksumkind: CSK_SHA1, checksum: "d5db29cd03a2ed055086cef9c31c252b4587d6d0")
19 !7 = !{i32 2, !"Debug Info Version", i32 3}