[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / Headers / typedef_guards.c
blobe934250f37070afeecfbcd81580940e32965c690
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
4 // NULL is rdefined in stddef.h
5 #define NULL ((void*) 0)
7 // These are headers bundled with Clang.
8 #include <stdarg.h>
9 #include <stddef.h>
11 #ifndef _VA_LIST
12 typedef __builtin_va_list va_list;
13 #endif
15 #ifndef _SIZE_T
16 typedef __typeof__(sizeof(int)) size_t;
17 #endif
19 #ifndef _WCHAR_T
20 typedef __typeof__(*L"") wchar_t;
21 #endif
23 extern void foo(wchar_t x);
24 extern void bar(size_t x);
25 void *baz(void) { return NULL; }
26 void quz(void) {
27 va_list y;