]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/atomic/c2x-stdatomic-var-init-1.c
stdatomic.h: Do not define ATOMIC_VAR_INIT for C2x
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / atomic / c2x-stdatomic-var-init-1.c
1 /* Test ATOMIC_VAR_INIT not in C2x. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c2x -pedantic-errors" } */
4
5 #include <stdatomic.h>
6
7 #ifdef ATOMIC_VAR_INIT
8 #error "ATOMIC_VAR_INIT defined"
9 #endif