John McCall | 260611a | 2012-06-20 06:18:46 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -triple x86_64-unknown-unknown -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s |
| 2 | // RUN: %clang_cc1 -x objective-c++ -triple x86_64-unknown-unknown -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s |
Fariborz Jahanian | 0a855d0 | 2009-03-23 19:10:40 +0000 | [diff] [blame] | 3 | |
| 4 | @interface I { |
| 5 | __attribute__((objc_gc(strong))) int *i_IdocumentIDs; |
| 6 | __attribute__((objc_gc(strong))) long *l_IdocumentIDs; |
| 7 | __attribute__((objc_gc(strong))) long long *ll_IdocumentIDs; |
| 8 | __attribute__((objc_gc(strong))) float *IdocumentIDs; |
| 9 | __attribute__((objc_gc(strong))) double *d_IdocumentIDs; |
| 10 | } |
| 11 | - (void) _getResultsOfMatches; |
| 12 | @end |
| 13 | |
| 14 | @implementation I |
| 15 | -(void) _getResultsOfMatches { |
| 16 | IdocumentIDs[2] = IdocumentIDs[3]; |
| 17 | d_IdocumentIDs[2] = d_IdocumentIDs[3]; |
| 18 | l_IdocumentIDs[2] = l_IdocumentIDs[3]; |
| 19 | ll_IdocumentIDs[2] = ll_IdocumentIDs[3]; |
| 20 | i_IdocumentIDs[2] = i_IdocumentIDs[3]; |
| 21 | } |
| 22 | |
| 23 | @end |
| 24 | |