Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / debug-info-extern-duplicate.c
blob597865c9f2b9ddf944d53e5e5ca7e434c8117abf
1 // RUN: %clang_cc1 -x c -debug-info-kind=limited -triple bpf-linux-gnu -emit-llvm %s -o - | FileCheck %s
3 extern char ch;
4 extern char ch;
5 int test(void) {
6 return ch;
9 // CHECK: distinct !DIGlobalVariable(name: "ch",{{.*}} type: ![[T:[0-9]+]], isLocal: false, isDefinition: false
10 // CHECK-NOT: distinct !DIGlobalVariable(name: "ch"