Home | History | Annotate | Download | only in SemaObjC
      1 // RUN: %clang_cc1 -fsyntax-only -verify %s
      2 // expected-no-diagnostics
      3 
      4 #include <stdarg.h>
      5 
      6 @interface NSObject @end
      7 @interface XX : NSObject @end
      8 
      9 @implementation XX
     10 - (void)encodeValuesOfObjCTypes:(const char *)types, ... {
     11    va_list ap;
     12    va_start(ap, types); 
     13    while (*types) ;
     14    va_end(ap);
     15 }
     16 
     17 @end
     18 
     19