blob: 9cc052911f65caedce0f6d42a584c38a53f77507 [file] [log] [blame]
Adrian Prantl733fe2f2017-10-02 18:31:29 +00001; RUN: llvm-as -disable-output <%s 2>&1 | FileCheck %s
Justin Bognera39b1ce2017-02-17 23:57:42 +00002; CHECK: line specified with no file
Adrian Prantl733fe2f2017-10-02 18:31:29 +00003; CHECK: warning: ignoring invalid debug info
Justin Bognera39b1ce2017-02-17 23:57:42 +00004
5define 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)