David Blaikie | ebf75d7 | 2012-12-28 01:16:31 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -g -emit-llvm -o - %s | FileCheck %s |
Devang Patel | eb4c45b | 2011-02-09 19:16:38 +0000 | [diff] [blame] | 2 | // Radar 8801045 |
| 3 | // Do not emit AT_MIPS_linkage_name for static variable i |
| 4 | |
David Blaikie | ebf75d7 | 2012-12-28 01:16:31 +0000 | [diff] [blame] | 5 | // CHECK: metadata !"i", metadata !"i", metadata !"" |
Devang Patel | eb4c45b | 2011-02-09 19:16:38 +0000 | [diff] [blame] | 6 | |
| 7 | @interface A { |
| 8 | } |
| 9 | -(void) foo; |
| 10 | @end |
| 11 | |
| 12 | @implementation A |
| 13 | -(void)foo { |
| 14 | static int i = 1; |
| 15 | } |
| 16 | @end |
| 17 | |