]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/c2x-stdatomic-1.c
3a9ceb0ea398fed77cb745169dd243f807fbfa62
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / c2x-stdatomic-1.c
1 /* Test __STDC_VERSION_STDATOMIC_H__ in C2x. */
2 /* { dg-do preprocess } */
3 /* { dg-options "-std=c2x -pedantic-errors" } */
4
5 #include <stdatomic.h>
6
7 #ifndef __STDC_VERSION_STDATOMIC_H__
8 #error "__STDC_VERSION_STDATOMIC_H__ not defined"
9 #endif
10
11 #if __STDC_VERSION_STDATOMIC_H__ != 202311L
12 #error "bad value of __STDC_VERSION_STDATOMIC_H__"
13 #endif