1814b8e91SDuncan P. N. Exon Smith; RUN: llvm-dis < %s.bc | FileCheck %s 2814b8e91SDuncan P. N. Exon Smith; Check that subprogram definitions are correctly upgraded to 'distinct'. 3*75819aedSAdrian Prantl; Bitcode compiled with llvm-as version 3.7. 4814b8e91SDuncan P. N. Exon Smith 5*75819aedSAdrian Prantldefine void @f() !dbg !3 { ret void } 6*75819aedSAdrian Prantl 7*75819aedSAdrian Prantl!llvm.module.flags = !{!4} 8*75819aedSAdrian Prantl!llvm.dbg.cu = !{!0} 9*75819aedSAdrian Prantl!0 = distinct !DICompileUnit(language: 12, file: !1, subprograms: !{!3}) 10814b8e91SDuncan P. N. Exon Smith!1 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") 11814b8e91SDuncan P. N. Exon Smith 12814b8e91SDuncan P. N. Exon Smith; CHECK: = distinct !DISubprogram({{.*}}, isDefinition: true 13814b8e91SDuncan P. N. Exon Smith!3 = !DISubprogram(name: "foo", isDefinition: true) 14*75819aedSAdrian Prantl!4 = !{i32 2, !"Debug Info Version", i32 3} 15