Adrian Prantl | 733fe2f | 2017-10-02 18:31:29 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as -disable-output <%s 2>&1 | FileCheck %s |
Justin Bogner | a39b1ce | 2017-02-17 23:57:42 +0000 | [diff] [blame] | 2 | ; CHECK: line specified with no file |
Adrian Prantl | 733fe2f | 2017-10-02 18:31:29 +0000 | [diff] [blame] | 3 | ; CHECK: warning: ignoring invalid debug info |
Justin Bogner | a39b1ce | 2017-02-17 23:57:42 +0000 | [diff] [blame] | 4 | |
| 5 | define void @foo() !dbg !3 { |
| 6 | ret void |
| 7 | } |
| 8 | |
| 9 | !llvm.module.flags = !{!0} |
| 10 | !llvm.dbg.cu = !{!1} |
| 11 | |
| 12 | !0 = !{i32 2, !"Debug Info Version", i32 3} |
| 13 | !1 = distinct !DICompileUnit(language: DW_LANG_C, file: !2) |
| 14 | !2 = !DIFile(filename: "foo.c", directory: "") |
| 15 | !3 = distinct !DISubprogram(name: "foo", scope: !1, line: 1, unit: !1) |