summaryrefslogtreecommitdiff
path: root/clang/test/SemaObjCXX/vla.mm
blob: d6da1c0cf40e03cdc76d0704c9c9093aa90ac970 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// RUN: %clang_cc1 -fsyntax-only -verify %s

@interface Data
- (unsigned)length;
- (void)getData:(void*)buffer;
@end

void test(Data *d) {
  char buffer[[d length]];
  [d getData:buffer];
}