xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGen/2010-02-15-DbgStaticVar.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -g -emit-llvm %s -o - | FileCheck %s
2f4a2713aSLionel Sambuc // Test to check intentionally empty linkage name for a static variable.
3f4a2713aSLionel Sambuc // Radar 7651244.
foo(int a)4f4a2713aSLionel Sambuc static int foo(int a)
5f4a2713aSLionel Sambuc {
6f4a2713aSLionel Sambuc 	static int b = 1;
7f4a2713aSLionel Sambuc 	return b+a;
8f4a2713aSLionel Sambuc }
9f4a2713aSLionel Sambuc 
main()10f4a2713aSLionel Sambuc int main() {
11f4a2713aSLionel Sambuc 	int j = foo(1);
12f4a2713aSLionel Sambuc 	return 0;
13f4a2713aSLionel Sambuc }
14*0a6a1f1dSLionel Sambuc // CHECK: !"0x34\00b\00b\00\00{{.*}}",
15