Galina Kistanova | 0ccb31c | 2011-06-03 22:24:54 +0000 | [diff] [blame] | 1 | // REQUIRES: x86-64-registered-target |
John McCall | 260611a | 2012-06-20 06:18:46 +0000 | [diff] [blame^] | 2 | // RUN: %clang_cc1 -g -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -S -masm-verbose -o - %s | FileCheck %s |
Devang Patel | eb4c45b | 2011-02-09 19:16:38 +0000 | [diff] [blame] | 3 | // Radar 8801045 |
| 4 | // Do not emit AT_MIPS_linkage_name for static variable i |
| 5 | |
Nick Lewycky | 9c273ff | 2011-10-28 05:29:57 +0000 | [diff] [blame] | 6 | // CHECK: Lset6 = Lstring3-Lsection_str ## DW_AT_name |
| 7 | // CHECK-NEXT: .long Lset6 |
Devang Patel | eb4c45b | 2011-02-09 19:16:38 +0000 | [diff] [blame] | 8 | // CHECK-NEXT: DW_AT_type |
| 9 | // CHECK-NEXT: DW_AT_decl_file |
| 10 | // CHECK-NEXT: DW_AT_decl_line |
| 11 | // CHECK-NEXT: DW_AT_location |
| 12 | |
| 13 | @interface A { |
| 14 | } |
| 15 | -(void) foo; |
| 16 | @end |
| 17 | |
| 18 | @implementation A |
| 19 | -(void)foo { |
| 20 | static int i = 1; |
| 21 | } |
| 22 | @end |
| 23 | |