Skip to content

Commit 831f6b9

Browse files
committed
fixup! add dedicated bitcode upgrade test
1 parent 2a2bd98 commit 831f6b9

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed
1.72 KB
Binary file not shown.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
; Test loading metadata which was not aware of versioned language names.
2+
;
3+
; RUN: llvm-dis -o - %p/Inputs/compile-unit-no-versioned-language.bc \
4+
; RUN: | FileCheck %s --implicit-check-not "sourceLanguageName" --implicit-check-not "sourceLanguageVersion"
5+
6+
; Input bitcode file was compiled from following source on
7+
; LLVM commit `fc22b58c25963ece6b041cadbdc931c2338955e4`:
8+
;
9+
; source_filename = "cu.cpp"
10+
; target triple = "arm64-apple-macosx"
11+
;
12+
; !llvm.dbg.cu = !{!0}
13+
; !llvm.module.flags = !{!3, !4}
14+
;
15+
; !0 = distinct !DICompileUnit(sourceLanguageName: DW_LNAME_ObjC_plus_plus, file: !1, producer: "handwritten", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, globals: !2, splitDebugInlining: false, nameTableKind: Apple, sysroot: "/")
16+
; !1 = !DIFile(filename: "cu.cpp", directory: "/tmp")
17+
; !2 = !{}
18+
; !3 = !{i32 7, !"Dwarf Version", i32 5}
19+
; !4 = !{i32 2, !"Debug Info Version", i32 3}
20+
21+
; CHECK: distinct !DICompileUnit(language: DW_LANG_C, file: !3, producer: "handwritten", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, globals: !4, splitDebugInlining: false, nameTableKind: Apple, sysroot: "/")

0 commit comments

Comments
 (0)