Adrian Prantl | a351f15 | 2017-10-02 18:31:52 +0000 | [diff] [blame] | 1 | ; REQUIRES: x86-registered-target |
| 2 | ; RUN: %clang_cc1 -triple i386-apple-darwin -disable-llvm-optzns -S %s -o - 2>&1 \ |
| 3 | ; RUN: | FileCheck %s |
| 4 | ; CHECK: invalid global variable ref |
| 5 | ; CHECK: warning: ignoring invalid debug info in {{.*}}.ll |
| 6 | |
| 7 | @global = common global i32 0, align 4, !dbg !2 |
| 8 | |
| 9 | !llvm.dbg.cu = !{!0} |
| 10 | !llvm.module.flags = !{!5, !6} |
| 11 | |
| 12 | !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "adrian", emissionKind: FullDebug, globals: !{!3}) |
| 13 | !1 = !DIFile(filename: "broken.c", directory: "/") |
| 14 | !2 = !DIGlobalVariableExpression(var: !3, expr: !DIExpression()) |
| 15 | !3 = !DIGlobalVariable(name: "g", scope: !0, file: !1, line: 1, type: !1, isLocal: false, isDefinition: true) |
| 16 | !5 = !{i32 2, !"Dwarf Version", i32 4} |
| 17 | !6 = !{i32 1, !"Debug Info Version", i32 3} |