1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/test/BugPoint/invalid-debuginfo.ll
David Tenty 1a6d5eb0da [AIX] Add %pluginext and update tests to use proper pluginext
As a follow on to D96282, since bug point passes is built as a module the proper file extension to use is LLVM_PLUGIN_EXT, rather than SHLIBEXT. Using SHLIBEXT causes the tests to load a non-existent file on AIX. We also adjust the PluginsTest unittest  to use LLVM_PLUGIN_EXT for similar reasons.

This change should hopefully make little difference to other platforms, since generally `SHLIBEXT=LTDL_SHLIB_EXT=CMAKE_SHARED_LIBRARY_SUFFIX` and `LLVM_PLUGIN_EXT=CMAKE_SHARED_LIBRARY_SUFFIX` on every platform except AIX.

Reviewed By: hubert.reinterpretcast

Differential Revision: https://reviews.llvm.org/D101412
2021-04-27 20:34:54 -04:00

23 lines
1.0 KiB
LLVM

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