blob: facd14e03ee6bf0e0cd22ae5c1bd04e7928c451f [file] [log] [blame]
Eric Christopher3883e662011-07-26 22:17:02 +00001// RUN: %clang_cc1 -g -emit-llvm %s -o - | grep "metadata ..b., metadata ..b., metadata ...,"
2// 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}