Adrian Prantl | 733fe2f | 2017-10-02 18:31:29 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as -disable-output %s 2>&1 | FileCheck %s |
Davide Italiano | 5cf0f46 | 2017-08-25 22:08:15 +0000 | [diff] [blame] | 2 | |
| 3 | ; CHECK: invalid type ref |
Adrian Prantl | 733fe2f | 2017-10-02 18:31:29 +0000 | [diff] [blame] | 4 | ; CHECK: warning: ignoring invalid debug info |
Davide Italiano | 5cf0f46 | 2017-08-25 22:08:15 +0000 | [diff] [blame] | 5 | |
| 6 | @bar = global i64 0, align 8, !dbg !0 |
| 7 | |
| 8 | !llvm.dbg.cu = !{!2} |
| 9 | !llvm.module.flags = !{!8} |
| 10 | |
Adrian Prantl | 69e607f | 2017-08-30 18:06:51 +0000 | [diff] [blame] | 11 | !0 = !DIGlobalVariableExpression(var: !1, expr: !DIExpression()) |
Davide Italiano | 5cf0f46 | 2017-08-25 22:08:15 +0000 | [diff] [blame] | 12 | !1 = !DIGlobalVariable(name: "c", scope: null, isLocal: false, isDefinition: true, type: !6) |
| 13 | !2 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !3, isOptimized: false, runtimeVersion: 0, emissionKind: NoDebug, retainedTypes: !4, globals: !7) |
| 14 | !3 = !DIFile(filename: "a", directory: "") |
| 15 | !4 = !{!5} |
| 16 | !5 = distinct !DICompositeType(tag: DW_TAG_class_type, scope: !6, file: !3, identifier: "patatino") |
| 17 | !6 = distinct !DISubprogram(name: "b", scope: null, isLocal: false, isDefinition: true, isOptimized: false, unit: !2) |
| 18 | !7 = !{!0} |
| 19 | !8 = !{i32 2, !"Debug Info Version", i32 3} |