Home | History | Annotate | Download | only in Rewriter
      1 // RUN: %clang_cc1 -rewrite-objc -o - %s
      2 // rdar://5950938
      3 @interface NSArray {}
      4 + (id)arrayWithObjects:(id)firstObj, ...;
      5 @end
      6 
      7 @interface NSConstantString {}
      8 @end
      9 
     10 int main() {
     11     id foo = [NSArray arrayWithObjects:@"1", @"2", @"3", @"4", @"5", @"6", @"7", @"8", @"9", @"10", @"11", @"12", 0];
     12     return 0;
     13 }
     14 
     15 // rdar://6291588
     16 @protocol A
     17 @end
     18 
     19 @interface Foo
     20 @end
     21 
     22 void func() {
     23   id <A> obj = (id <A>)[Foo bar];
     24 }
     25 
     26