15 lines · plain
1; RUN: llvm-dis < %s.bc | FileCheck %s2; Check that subprogram definitions are correctly upgraded to 'distinct'.3; Bitcode compiled with llvm-as version 3.7.4 5define void @f() !dbg !3 { ret void }6 7!llvm.module.flags = !{!4}8!llvm.dbg.cu = !{!0}9!0 = distinct !DICompileUnit(language: 12, file: !1, subprograms: !{!3})10!1 = !DIFile(filename: "path/to/file", directory: "/path/to/dir")11 12; CHECK: = distinct !DISubprogram({{.*}} DISPFlagDefinition13!3 = !DISubprogram(name: "foo", isDefinition: true)14!4 = !{i32 2, !"Debug Info Version", i32 3}15