xref: /llvm-project/llvm/test/Bitcode/DISubprogram-distinct-definitions.ll (revision adcdc1bd0a8802f5260162b8b63762724bf1ff32)
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'.
375819aedSAdrian Prantl; Bitcode compiled with llvm-as version 3.7.
4814b8e91SDuncan P. N. Exon Smith
575819aedSAdrian Prantldefine void @f() !dbg !3 { ret void }
675819aedSAdrian Prantl
775819aedSAdrian Prantl!llvm.module.flags = !{!4}
875819aedSAdrian Prantl!llvm.dbg.cu = !{!0}
975819aedSAdrian 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
12*adcdc1bdSPaul Robinson; CHECK: = distinct !DISubprogram({{.*}} DISPFlagDefinition
13814b8e91SDuncan P. N. Exon Smith!3 = !DISubprogram(name: "foo", isDefinition: true)
1475819aedSAdrian Prantl!4 = !{i32 2, !"Debug Info Version", i32 3}
15