mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-19 12:33:51 +00:00

A line number doesn't make much sense if you don't say where it's from. Add a verifier check for this and update some tests that had bogus debug info. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295516 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
457 B
LLVM
16 lines
457 B
LLVM
; RUN: not llvm-as -disable-output <%s 2>&1 | FileCheck %s
|
|
; CHECK: assembly parsed, but does not verify
|
|
; CHECK: line specified with no file
|
|
|
|
define void @foo() !dbg !3 {
|
|
ret void
|
|
}
|
|
|
|
!llvm.module.flags = !{!0}
|
|
!llvm.dbg.cu = !{!1}
|
|
|
|
!0 = !{i32 2, !"Debug Info Version", i32 3}
|
|
!1 = distinct !DICompileUnit(language: DW_LANG_C, file: !2)
|
|
!2 = !DIFile(filename: "foo.c", directory: "")
|
|
!3 = distinct !DISubprogram(name: "foo", scope: !1, line: 1, unit: !1)
|