1 | //===----------------------------------------------------------------------===// |
2 | // |
3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
4 | // See https://llvm.org/LICENSE.txt for license information. |
5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
6 | // |
7 | //===----------------------------------------------------------------------===// |
8 | |
9 | // test <stdarg.h> |
10 | |
11 | #include <stdarg.h> |
12 | |
13 | #include "test_macros.h" |
14 | |
15 | #ifndef va_arg |
16 | #error va_arg not defined |
17 | #endif |
18 | |
19 | #if TEST_STD_VER >= 11 |
20 | # ifndef va_copy |
21 | # error va_copy is not defined when c++ >= 11 |
22 | # endif |
23 | #endif |
24 | |
25 | #ifndef va_end |
26 | #error va_end not defined |
27 | #endif |
28 | |
29 | #ifndef va_start |
30 | #error va_start not defined |
31 | #endif |
32 | |
33 | va_list va; |
34 | |