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