mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-09 05:31:19 +00:00
bfddc41d9c
There was already a good error path for this. Added a test for it & made a minor code change to ensure the error path was actually reached, rather than crashing before we got that far. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245795 91177308-0d34-0410-b5e6-96231b3b80d8
11 lines
393 B
LLVM
11 lines
393 B
LLVM
; RUN: not llvm-as -disable-output <%s 2>&1 | FileCheck %s
|
|
; CHECK: assembly parsed, but does not verify
|
|
; CHECK-NEXT: invalid retained type
|
|
|
|
!llvm.module.flags = !{!0}
|
|
!0 = !{i32 2, !"Debug Info Version", i32 3}
|
|
!llvm.dbg.cu = !{!1}
|
|
!1 = distinct !DICompileUnit(file: !2, language: DW_LANG_C99, retainedTypes: !3)
|
|
!2 = !DIFile(filename: "file.c", directory: "/path/to/dir")
|
|
!3 = !{null}
|