1 // RUN: %clang_cc1 -fsyntax-only -verify %s 2 3 // NULL is rdefined in stddef.h 4 #define NULL ((void*) 0) 5 6 // These are headers bundled with Clang. 7 #include <stdarg.h> 8 #include <stddef.h> 9 10 #ifndef _VA_LIST 11 typedef __builtin_va_list va_list; 12 #endif 13 14 #ifndef _SIZE_T 15 typedef __typeof__(sizeof(int)) size_t; 16 #endif 17 18 #ifndef _WCHAR_T 19 typedef __typeof__(*L"") wchar_t; 20 #endif 21 22 extern void foo(wchar_t x); 23 extern void bar(size_t x); 24 void *baz() { return NULL; } 25 void quz() { 26 va_list y; 27 } 28 29