Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libcxx / test / std / language.support / support.runtime / cstdarg.pass.cpp
blob8d7fd70b75aa8595e73cb5c73901ea081f1eadb8
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 //===----------------------------------------------------------------------===//
9 // test <cstdarg>
11 #include <cstdarg>
13 #include "test_macros.h"
15 #ifndef va_arg
16 #error va_arg not defined
17 #endif
19 #if TEST_STD_VER >= 11
20 # ifndef va_copy
21 # error va_copy is not defined when c++ >= 11
22 # endif
23 #endif
25 #ifndef va_end
26 #error va_end not defined
27 #endif
29 #ifndef va_start
30 #error va_start not defined
31 #endif
33 int main(int, char**)
35 std::va_list va;
36 ((void)va);
38 return 0;