Recommit r310809 with a fix for the spill problem
[llvm-core.git] / test / Verifier / dbg-difile-crash.ll
blob626d1d1edd35d8deeef1dacb1cb0e1a6dae8adcf
1 ; RUN: not llvm-as -disable-output <%s 2>&1 | FileCheck %s
2 ; CHECK:      assembly parsed, but does not verify
3 ; CHECK-NEXT: invalid file
5 define void @blah() !dbg !3 {
6   ret void
9 !llvm.module.flags = !{!0}
10 !0 = !{i32 2, !"Debug Info Version", i32 3}
11 !llvm.dbg.cu = !{!1}
12 !1 = distinct !DICompileUnit(file: !2, language: DW_LANG_C99)
13 !2 = !DIFile(filename: "file.c", directory: "/path/to/dir")
14 !3 = distinct !DISubprogram(name: "blah", file: !1, unit: !1)