aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c11-stdatomic-3.c
blob: 1f5a71b6219fc36e05189554dfc9338515efc666 (plain)
1
2
3
4
5
6
7
8
9
/* Test __STDC_VERSION_STDATOMIC_H__ not in C11.  */
/* { dg-do preprocess } */
/* { dg-options "-std=c11 -pedantic-errors" } */

#include <stdatomic.h>

#ifdef __STDC_VERSION_STDATOMIC_H__
#error "__STDC_VERSION_STDATOMIC_H__ defined"
#endif