зеркало из https://github.com/microsoft/clang-1.git
Add test cases for r98003 and r98006.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98008 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
21259bafdc
Коммит
f7507f29d7
|
@ -9,6 +9,7 @@ set(CLANG_TEST_DIRECTORIES
|
||||||
"Driver"
|
"Driver"
|
||||||
"FixIt"
|
"FixIt"
|
||||||
"Frontend"
|
"Frontend"
|
||||||
|
"Headers"
|
||||||
"Index"
|
"Index"
|
||||||
"Lexer"
|
"Lexer"
|
||||||
"Misc"
|
"Misc"
|
||||||
|
|
|
@ -0,0 +1,28 @@
|
||||||
|
// RUN: %clang -fsyntax-only -verify %s
|
||||||
|
|
||||||
|
// NULL is rdefined in stddef.h
|
||||||
|
#define NULL ((void*) 0)
|
||||||
|
|
||||||
|
// These are headers bundled with Clang.
|
||||||
|
#include <stdarg.h>
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
|
#ifndef _VA_LIST
|
||||||
|
typedef __builtin_va_list va_list;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef _SIZE_T
|
||||||
|
typedef __typeof__(sizeof(int)) size_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef _WCHAR_T
|
||||||
|
typedef __typeof__(*L"") wchar_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
extern void foo(wchar_t x);
|
||||||
|
extern void bar(size_t x);
|
||||||
|
void *baz() { return NULL; }
|
||||||
|
void quz() {
|
||||||
|
va_list y;
|
||||||
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче