blob: fd23effe9a8531453fcf01f31fed3f0d174eaf6b [file] [log] [blame]
Adrian Prantl733fe2f2017-10-02 18:31:29 +00001; RUN: llvm-as -disable-output <%s 2>&1| FileCheck %s
Adrian Prantl1bf62972017-04-26 22:56:44 +00002
3define 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 Prantl733fe2f2017-10-02 18:31:29 +000015; CHECK: warning: ignoring invalid debug info
Adrian Prantl1bf62972017-04-26 22:56:44 +000016!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}