blob: 022be6bcae73b1e2d7af2ab366ce7d31a40baa33 [file] [log] [blame]
/* Test __STDC_VERSION_STDATOMIC_H__ in C23. */
/* { dg-do preprocess } */
/* { dg-options "-std=c23 -pedantic-errors" } */
#include <stdatomic.h>
#ifndef __STDC_VERSION_STDATOMIC_H__
#error "__STDC_VERSION_STDATOMIC_H__ not defined"
#endif
#if __STDC_VERSION_STDATOMIC_H__ != 202311L
#error "bad value of __STDC_VERSION_STDATOMIC_H__"
#endif