1 ; RUN: llvm-as -disable-output <%s 2>&1| FileCheck %s
3 define void @f() !dbg !14 {
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
15 ; CHECK: warning: ignoring invalid debug info
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}