Adrian Prantl | 733fe2f | 2017-10-02 18:31:29 +0000 | [diff] [blame] | 1 | ; RUN: opt -verify %s 2>&1 | FileCheck %s |
Davide Italiano | 86fc9ce | 2017-09-24 01:06:35 +0000 | [diff] [blame] | 2 | ; CHECK: invalid type ref |
| 3 | ; CHECK-NOT: invalid type ref |
| 4 | |
| 5 | @global = common global i32 0, align 4, !dbg !2 |
| 6 | |
| 7 | !llvm.dbg.cu = !{!0} |
| 8 | !llvm.module.flags = !{!5, !6} |
| 9 | |
| 10 | !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "adrian", emissionKind: FullDebug) |
| 11 | !1 = !DIFile(filename: "broken.c", directory: "/") |
| 12 | !2 = !DIGlobalVariableExpression(var: !3, expr: !DIExpression()) |
| 13 | !3 = !DIGlobalVariable(name: "g", scope: !0, file: !1, line: 1, type: !1, isLocal: false, isDefinition: true) |
| 14 | !5 = !{i32 2, !"Dwarf Version", i32 4} |
| 15 | !6 = !{i32 1, !"Debug Info Version", i32 3} |
| 16 | |