2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
2008-01-22 06:59:53 +08:00
|
|
|
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
@interface NSObject @end
|
|
|
|
@interface XX : NSObject @end
|
|
|
|
|
|
|
|
@implementation XX
|
|
|
|
- (void)encodeValuesOfObjCTypes:(const char *)types, ... {
|
|
|
|
va_list ap;
|
|
|
|
va_start(ap, types);
|
|
|
|
while (*types) ;
|
|
|
|
va_end(ap);
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|
|
|
|
|