1*814b8e91SDuncan P. N. Exon Smith; RUN: llvm-dis < %s.bc | FileCheck %s
2*814b8e91SDuncan P. N. Exon Smith; Check that subprogram definitions are correctly upgraded to 'distinct'.
3*814b8e91SDuncan P. N. Exon Smith; Bitcode compiled from r245235 of the 3.7 release branch.
4*814b8e91SDuncan P. N. Exon Smith
5*814b8e91SDuncan P. N. Exon Smith!named = !{!0}
6*814b8e91SDuncan P. N. Exon Smith!0 = distinct !DICompileUnit(language: 12, file: !1, subprograms: !2)
7*814b8e91SDuncan P. N. Exon Smith!1 = !DIFile(filename: "path/to/file", directory: "/path/to/dir")
8*814b8e91SDuncan P. N. Exon Smith!2 = !{!3}
9*814b8e91SDuncan P. N. Exon Smith
10*814b8e91SDuncan P. N. Exon Smith; CHECK: = distinct !DISubprogram({{.*}}, isDefinition: true
11*814b8e91SDuncan P. N. Exon Smith!3 = !DISubprogram(name: "foo", isDefinition: true)
12