Home | History | Annotate | Download | only in Generic
      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, isLocal: false, isDefinition: true, isOptimized: false)
      7 ; CHECK-NOT: subprogram definitions must have a compile unit
      8 ; CHECK-NOT: !3 = distinct !DISubprogram(name: "patatino", scope: null, isLocal: false, isDefinition: true, isOptimized: false)
      9 ; CHECK: warning: ignoring invalid debug info
     10 
     11 define 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