diff options
Diffstat (limited to 'test/std/depr/depr.c.headers/stdarg_h.pass.cpp')
-rw-r--r-- | test/std/depr/depr.c.headers/stdarg_h.pass.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/test/std/depr/depr.c.headers/stdarg_h.pass.cpp b/test/std/depr/depr.c.headers/stdarg_h.pass.cpp new file mode 100644 index 0000000000000..7a60902529ea2 --- /dev/null +++ b/test/std/depr/depr.c.headers/stdarg_h.pass.cpp @@ -0,0 +1,35 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// test <stdarg.h> + +#include <stdarg.h> + +#ifndef va_arg +#error va_arg not defined +#endif + +#if __cplusplus >= 201103L +# ifndef va_copy +# error va_copy is not defined when c++ >= 11 +# endif +#endif + +#ifndef va_end +#error va_end not defined +#endif + +#ifndef va_start +#error va_start not defined +#endif + +int main() +{ + va_list va; +} |