aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c2x-stdarg-5.c
blob: 134244357bbc5139ee0b2025bae160c4b81383c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* Test __STDC_VERSION_STDARG_H__ in C2x.  */
/* { dg-do preprocess } */
/* { dg-options "-std=c2x -pedantic-errors" } */

#include <stdarg.h>

#ifndef __STDC_VERSION_STDARG_H__
#error "__STDC_VERSION_STDARG_H__ not defined"
#endif

#if __STDC_VERSION_STDARG_H__ != 202311L
#error "bad value of __STDC_VERSION_STDARG_H__"
#endif