clang/test/DebugInfo/Generic/extern-duplicate.c
raw| 1 | // RUN: %clang_cc1 -x c -debug-info-kind=limited -triple bpf-linux-gnu -emit-llvm %s -o - | FileCheck %s |
| 2 | |
| 3 | extern char ch; |
| 4 | extern char ch; |
| 5 | int test(void) { |
| 6 | return ch; |
| 7 | } |
| 8 | |
| 9 | // CHECK: distinct !DIGlobalVariable(name: "ch",{{.*}} type: ![[T:[0-9]+]], isLocal: false, isDefinition: false |
| 10 | // CHECK-NOT: distinct !DIGlobalVariable(name: "ch" |