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