blob: 273385a3a942bd069dedec8aaeecaae12177c7dc [file] [log] [blame]
Duncan P. N. Exon Smith3c51fa62014-10-03 20:01:52 +00001// RUN: %clang_cc1 -g -emit-llvm %s -o - | FileCheck %s
Eric Christopher85e51562011-07-26 22:17:02 +00002// Test to check intentionally empty linkage name for a static variable.
3// Radar 7651244.
4static int foo(int a)
5{
6 static int b = 1;
7 return b+a;
8}
9
10int main() {
11 int j = foo(1);
12 return 0;
13}
Duncan P. N. Exon Smith9dd4e4e2015-04-29 16:40:08 +000014// CHECK: !DIGlobalVariable(name: "b",
Duncan P. N. Exon Smithf04be1f2015-03-03 17:25:55 +000015// CHECK-NOT: linkageName:
16// CHECK-SAME: ){{$}}