• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llvm-as -disable-output %s 2>&1 | FileCheck %s
2
3; Make sure we emit this diagnostic only once (which means we don't visit the
4; same DISubprogram twice.
5; CHECK: subprogram definitions must have a compile unit
6; CHECK-NEXT: !3 = distinct !DISubprogram(name: "patatino", scope: null, spFlags: DISPFlagDefinition)
7; CHECK-NOT: subprogram definitions must have a compile unit
8; CHECK-NOT: !3 = distinct !DISubprogram(name: "patatino", scope: null, spFlags: DISPFlagDefinition)
9; CHECK: warning: ignoring invalid debug info
10
11define void @tinkywinky() !dbg !3 { ret void }
12
13!llvm.module.flags = !{!4}
14!llvm.dbg.cu = !{!0}
15!0 = distinct !DICompileUnit(language: 12, file: !1)
16!1 = !DIFile(filename: "/home/davide", directory: "/home/davide")
17!3 = distinct !DISubprogram(name: "patatino", isDefinition: true)
18!4 = !{i32 2, !"Debug Info Version", i32 3}
19