Adrian Prantl | 733fe2f | 2017-10-02 18:31:29 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as -disable-output <%s 2>&1| FileCheck %s |
Adrian Prantl | 1bf6297 | 2017-04-26 22:56:44 +0000 | [diff] [blame] | 2 | |
| 3 | define void @f() !dbg !14 { |
| 4 | ret void |
| 5 | } |
| 6 | |
| 7 | !0 = !{null} |
| 8 | !1 = distinct !DICompositeType(tag: DW_TAG_structure_type) |
| 9 | !2 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") |
| 10 | !3 = !DISubroutineType(types: !0) |
| 11 | !4 = distinct !DICompositeType(tag: DW_TAG_structure_type) |
| 12 | !8 = distinct !DICompileUnit(language: DW_LANG_Swift, producer: "clang", |
| 13 | file: !2, emissionKind: 2) |
| 14 | ; CHECK: invalid thrown type |
Adrian Prantl | 733fe2f | 2017-10-02 18:31:29 +0000 | [diff] [blame] | 15 | ; CHECK: warning: ignoring invalid debug info |
Adrian Prantl | 1bf6297 | 2017-04-26 22:56:44 +0000 | [diff] [blame] | 16 | !13 = !{!14} |
| 17 | !14 = distinct !DISubprogram(name: "f", scope: !1, |
| 18 | file: !2, line: 1, type: !3, isLocal: true, |
| 19 | isDefinition: true, scopeLine: 2, |
| 20 | unit: !8, thrownTypes: !13) |
| 21 | !15 = !{i32 1, !"Debug Info Version", i32 3} |
| 22 | !llvm.module.flags = !{!15} |
| 23 | !llvm.dbg.cu = !{!8} |