2015-10-08 12:24:12 +08:00
|
|
|
// RUN: %clang_cc1 -debug-info-kind=limited -emit-llvm %s -o - | FileCheck %s
|
2011-07-27 06:17:02 +08:00
|
|
|
// Test to check intentionally empty linkage name for a static variable.
|
|
|
|
// Radar 7651244.
|
|
|
|
static int foo(int a)
|
|
|
|
{
|
|
|
|
static int b = 1;
|
|
|
|
return b+a;
|
|
|
|
}
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
int j = foo(1);
|
|
|
|
return 0;
|
|
|
|
}
|
2015-04-30 00:40:08 +08:00
|
|
|
// CHECK: !DIGlobalVariable(name: "b",
|
2015-03-04 01:25:55 +08:00
|
|
|
// CHECK-NOT: linkageName:
|
|
|
|
// CHECK-SAME: ){{$}}
|