Douglas Katzman | 3459ce2 | 2015-10-08 04:24:12 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -debug-info-kind=limited -emit-llvm %s -o - | FileCheck %s |
Eric Christopher | 85e5156 | 2011-07-26 22:17:02 +0000 | [diff] [blame] | 2 | // Test to check intentionally empty linkage name for a static variable. |
| 3 | // Radar 7651244. |
| 4 | static int foo(int a) |
| 5 | { |
| 6 | static int b = 1; |
| 7 | return b+a; |
| 8 | } |
| 9 | |
| 10 | int main() { |
| 11 | int j = foo(1); |
| 12 | return 0; |
| 13 | } |
Duncan P. N. Exon Smith | 9dd4e4e | 2015-04-29 16:40:08 +0000 | [diff] [blame] | 14 | // CHECK: !DIGlobalVariable(name: "b", |
Duncan P. N. Exon Smith | f04be1f | 2015-03-03 17:25:55 +0000 | [diff] [blame] | 15 | // CHECK-NOT: linkageName: |
| 16 | // CHECK-SAME: ){{$}} |