David Blaikie | bf18725 | 2012-12-28 01:16:31 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -g -emit-llvm -o - %s | FileCheck %s |
Devang Patel | 84d40a4 | 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 | |
Duncan P. N. Exon Smith | b3a6669 | 2014-12-15 19:10:08 +0000 | [diff] [blame] | 5 | // CHECK: !"0x34\00i\00i\00\00{{.*}}" |
Devang Patel | 84d40a4 | 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 | |