xref: /llvm-project/clang/test/CodeGenObjC/objc-dictionary-literal.m (revision 0f1c1be1968076d6f96f8a7bcc4a15cf195ecd97)
1// RUN: %clang_cc1 -x objective-c -triple x86_64-apple-darwin10 -fblocks -emit-llvm %s -o /dev/null
2// RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin10 -fblocks -emit-llvm %s -o /dev/null
3
4@interface NSNumber
5+ (NSNumber *)numberWithChar:(char)value;
6+ (NSNumber *)numberWithInt:(int)value;
7@end
8
9@protocol NSCopying @end
10typedef unsigned long NSUInteger;
11
12@interface NSDictionary
13+ (id)dictionaryWithObjects:(const id [])objects forKeys:(const id <NSCopying> [])keys count:(NSUInteger)cnt;
14@end
15
16@interface NSString<NSCopying>
17@end
18
19int main(void) {
20	NSDictionary *dict = @{ @"name":@666 };
21	NSDictionary *dict1 = @{ @"name":@666 };
22	NSDictionary *dict2 = @{ @"name":@666 };
23	return 0;
24}
25