• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 // Radar 7651244.
foo(int a)4 static int foo(int a)
5 {
6 	static int b = 1;
7 	return b+a;
8 }
9 
main()10 int main() {
11 	int j = foo(1);
12 	return 0;
13 }
14 // CHECK: !DIGlobalVariable(name: "b",
15 // CHECK-NOT:               linkageName:
16 // CHECK-SAME:              ){{$}}
17