1// RUN: %clang_cc1 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 -o - %s 2@interface NSArray {} 3+ (id)arrayWithObjects:(id)firstObj, ...; 4@end 5 6@interface NSConstantString {} 7@end 8 9int main(void) { 10 id foo = [NSArray arrayWithObjects:@"1", @"2", @"3", @"4", @"5", @"6", @"7", @"8", @"9", @"10", @"11", @"12", 0]; 11 return 0; 12} 13 14@protocol A 15@end 16 17@interface Foo 18@end 19 20void func(void) { 21 id <A> obj = (id <A>)[Foo bar]; 22} 23 24