1 //===----------------------------------------------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 // test <stdarg.h>
11 
12 #include <stdarg.h>
13 
14 #ifndef va_arg
15 #error va_arg not defined
16 #endif
17 
18 #if __cplusplus >= 201103L
19 #  ifndef va_copy
20 #    error va_copy is not defined when c++ >= 11
21 #  endif
22 #endif
23 
24 #ifndef va_end
25 #error va_end not defined
26 #endif
27 
28 #ifndef va_start
29 #error va_start not defined
30 #endif
31 
main()32 int main()
33 {
34     va_list va;
35     ((void)va);
36 }
37