1 // RUN: %clang_cc1 -fsyntax-only -verify %s 2 3 @interface Data 4 - (unsigned)length; 5 - (void)getData:(void*)buffer; 6 @end 7 8 void test(Data *d) { 9 char buffer[[d length]]; 10 [d getData:buffer]; 11 } 12 13