xref: /llvm-project/libcxx/test/std/language.support/support.runtime/cstdarg.pass.cpp (revision 2df59c50688c122bbcae7467d3eaf862c3ea3088)
15a83710eSEric Fiselier //===----------------------------------------------------------------------===//
25a83710eSEric Fiselier //
357b08b09SChandler Carruth // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
457b08b09SChandler Carruth // See https://llvm.org/LICENSE.txt for license information.
557b08b09SChandler Carruth // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
65a83710eSEric Fiselier //
75a83710eSEric Fiselier //===----------------------------------------------------------------------===//
85a83710eSEric Fiselier 
95a83710eSEric Fiselier // test <cstdarg>
105a83710eSEric Fiselier 
115a83710eSEric Fiselier #include <cstdarg>
125a83710eSEric Fiselier 
13f2f2a639SEric Fiselier #include "test_macros.h"
14f2f2a639SEric Fiselier 
155a83710eSEric Fiselier #ifndef va_arg
165a83710eSEric Fiselier #error va_arg not defined
175a83710eSEric Fiselier #endif
185a83710eSEric Fiselier 
19f2f2a639SEric Fiselier #if TEST_STD_VER >= 11
205a83710eSEric Fiselier #  ifndef va_copy
215a83710eSEric Fiselier #    error va_copy is not defined when c++ >= 11
225a83710eSEric Fiselier #  endif
235a83710eSEric Fiselier #endif
245a83710eSEric Fiselier 
255a83710eSEric Fiselier #ifndef va_end
265a83710eSEric Fiselier #error va_end not defined
275a83710eSEric Fiselier #endif
285a83710eSEric Fiselier 
295a83710eSEric Fiselier #ifndef va_start
305a83710eSEric Fiselier #error va_start not defined
315a83710eSEric Fiselier #endif
325a83710eSEric Fiselier 
main(int,char **)33*2df59c50SJF Bastien int main(int, char**)
345a83710eSEric Fiselier {
355a83710eSEric Fiselier     std::va_list va;
365fd30897SEric Fiselier     ((void)va);
37*2df59c50SJF Bastien 
38*2df59c50SJF Bastien   return 0;
395a83710eSEric Fiselier }
40