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