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