Brian Gesiak | dcf592e | 2018-12-10 00:56:13 +0000 | [diff] [blame] | 1 | ; RUN: bugpoint -load %llvmshlibdir/BugpointPasses%shlibext %s -output-prefix %t -bugpoint-crash-too-many-cus -silence-passes 2>&1 | FileCheck %s |
Adrian Prantl | da27c36 | 2016-10-18 16:24:43 +0000 | [diff] [blame] | 2 | ; REQUIRES: loadable_module |
Davide Italiano | 3abe103 | 2017-02-20 22:51:42 +0000 | [diff] [blame] | 3 | ; CHECK: DICompileUnit not listed in llvm.dbg.cu |
Adrian Prantl | da27c36 | 2016-10-18 16:24:43 +0000 | [diff] [blame] | 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. |
| 8 | define 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) |