Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / CodeGen / 2010-02-15-DbgStaticVar.c
blob07e5bb01b5fc22cba1b858e320faf4b4ec2d51c8
1 // RUN: %clang_cc1 -debug-info-kind=limited -emit-llvm %s -o - | FileCheck %s
2 // Test to check intentionally empty linkage name for a static variable.
3 static int foo(int a)
5 static int b = 1;
6 return b+a;
9 int main(void) {
10 int j = foo(1);
11 return 0;
13 // CHECK: !DIGlobalVariable(name: "b",
14 // CHECK-NOT: linkageName:
15 // CHECK-SAME: ){{$}}