cstdarg.pass.cpp 769 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. // test <cstdarg>
  9. #include <cstdarg>
  10. #include "test_macros.h"
  11. #ifndef va_arg
  12. #error va_arg not defined
  13. #endif
  14. #if TEST_STD_VER >= 11
  15. # ifndef va_copy
  16. # error va_copy is not defined when c++ >= 11
  17. # endif
  18. #endif
  19. #ifndef va_end
  20. #error va_end not defined
  21. #endif
  22. #ifndef va_start
  23. #error va_start not defined
  24. #endif
  25. int main(int, char**)
  26. {
  27. std::va_list va;
  28. ((void)va);
  29. return 0;
  30. }