| // RUN: %clang_cc1 -emit-llvm -triple x86_64-apple-darwin -o - %s | FileCheck %s |
| typedef unsigned int size_t; |
| @interface NSMutableArray |
| - (id)objectAtIndexedSubscript:(size_t)index; |
| - (void)setObject:(id)object atIndexedSubscript:(size_t)index; |
| operator unsigned int (); |
| @interface NSMutableDictionary |
| - (id)objectForKeyedSubscript:(id<NSCopying>)key; |
| - (void)setObject:(id)object forKeyedSubscript:(id<NSCopying>)key; |
| NSMutableArray<P> * array; |
| id oldObject = array[(int)s]; |
| NSMutableDictionary<P> *dict; |
| template <class T> void test2(NSMutableArray *a) { |
| template void test2<int>(NSMutableArray*); |
| // CHECK-LABEL: define weak_odr void @_Z5test2IiEvP14NSMutableArray |
| template <class T> void test3(NSMutableArray *a) { |
| template void test3<int>(NSMutableArray*); |
| // CHECK-LABEL: define weak_odr void @_Z5test3IiEvP14NSMutableArray |