Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Fariborz Jahanian | 2338d58 | 2008-01-21 22:59:53 +0000 | [diff] [blame] | 2 | |
3 | #include <stdarg.h> | ||||
4 | |||||
5 | @interface NSObject @end | ||||
6 | @interface XX : NSObject @end | ||||
7 | |||||
8 | @implementation XX | ||||
9 | - (void)encodeValuesOfObjCTypes:(const char *)types, ... { | ||||
10 | va_list ap; | ||||
11 | va_start(ap, types); | ||||
12 | while (*types) ; | ||||
13 | va_end(ap); | ||||
14 | } | ||||
15 | |||||
16 | @end | ||||
17 |