Adrian Prantl | 30e5830 | 2014-05-19 23:41:25 +0000 | [diff] [blame] | 1 | ; RUN: llvm-link %s %p/debug-info-version-b.ll -S -o - | FileCheck %s |
| 2 | |
| 3 | ; Test linking of incompatible debug info versions. The debug info |
| 4 | ; from the other file should be dropped. |
| 5 | |
Duncan P. N. Exon Smith | e56023a | 2015-04-29 16:38:44 +0000 | [diff] [blame] | 6 | ; CHECK-NOT: !DIFile(filename: "b.c", directory: "") |
| 7 | ; CHECK: !DIFile(filename: "a.c", directory: "") |
| 8 | ; CHECK-NOT: !DIFile(filename: "b.c", directory: "") |
Adrian Prantl | 30e5830 | 2014-05-19 23:41:25 +0000 | [diff] [blame] | 9 | |
| 10 | !llvm.module.flags = !{ !0 } |
| 11 | !llvm.dbg.cu = !{!1} |
| 12 | |
Duncan P. N. Exon Smith | b056aa7 | 2015-03-03 17:24:31 +0000 | [diff] [blame] | 13 | !0 = !{i32 2, !"Debug Info Version", i32 3} |
Adrian Prantl | 4eeaa0d | 2016-04-15 15:57:41 +0000 | [diff] [blame] | 14 | !1 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang", isOptimized: true, emissionKind: FullDebug, file: !2, enums: !3, retainedTypes: !3) |
Duncan P. N. Exon Smith | e56023a | 2015-04-29 16:38:44 +0000 | [diff] [blame] | 15 | !2 = !DIFile(filename: "a.c", directory: "") |
Duncan P. N. Exon Smith | 1ef70ff | 2014-12-15 19:07:53 +0000 | [diff] [blame] | 16 | !3 = !{} |