brintos

brintos / llvm-project-archived public Read only

0
0
Text · 429 B · c8d5d78 Raw
24 lines · plain
1// RUN: %clang_cc1 -rewrite-objc -fobjc-runtime=macosx-fragile-10.5 -o - %s2@interface NSArray {}3+ (id)arrayWithObjects:(id)firstObj, ...;4@end5 6@interface NSConstantString {}7@end8 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 A15@end16 17@interface Foo18@end19 20void func(void) {21  id <A> obj = (id <A>)[Foo bar];22}23 24