2010-02-20 00:47:56 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
|
|
|
|
|
|
@interface Data
|
|
|
|
- (unsigned)length;
|
|
|
|
- (void)getData:(void*)buffer;
|
|
|
|
@end
|
|
|
|
|
|
|
|
void test(Data *d) {
|
2010-05-23 00:17:30 +08:00
|
|
|
char buffer[[d length]];
|
2010-02-20 00:47:56 +08:00
|
|
|
[d getData:buffer];
|
|
|
|
}
|
|
|
|
|