Home | History | Annotate | Download | only in depr.c.headers
      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 #include "test_macros.h"
     15 
     16 #ifndef va_arg
     17 #error va_arg not defined
     18 #endif
     19 
     20 #if TEST_STD_VER >= 11
     21 #  ifndef va_copy
     22 #    error va_copy is not defined when c++ >= 11
     23 #  endif
     24 #endif
     25 
     26 #ifndef va_end
     27 #error va_end not defined
     28 #endif
     29 
     30 #ifndef va_start
     31 #error va_start not defined
     32 #endif
     33 
     34 int main()
     35 {
     36     va_list va;
     37     ((void)va);
     38 }
     39