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