1; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crash-too-many-cus -silence-passes 2>&1 | FileCheck %s 2; REQUIRES: plugins 3; CHECK: DICompileUnit not listed in llvm.dbg.cu 4 5; When bugpoint hacks at this testcase it will at one point create illegal IR 6; that won't even pass the Verifier. A bugpoint *driver* built with assertions 7; should not assert on it, but reject the malformed intermediate step. 8define void @f() !dbg !9 { ret void } 9!llvm.dbg.cu = !{!0, !1, !2, !3, !4, !5} 10!0 = distinct !DICompileUnit(language: 12, file: !6) 11!1 = distinct !DICompileUnit(language: 12, file: !6) 12!2 = distinct !DICompileUnit(language: 12, file: !6) 13!3 = distinct !DICompileUnit(language: 12, file: !6) 14!4 = distinct !DICompileUnit(language: 12, file: !6) 15!5 = distinct !DICompileUnit(language: 12, file: !6) 16!6 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") 17 18!llvm.module.flags = !{!7, !8} 19!7 = !{i32 2, !"Dwarf Version", i32 4} 20!8 = !{i32 2, !"Debug Info Version", i32 3} 21 22!9 = distinct !DISubprogram(unit: !0) 23