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

#include <stdint.h>

#ifndef __STDC_VERSION_STDINT_H__
#error "__STDC_VERSION_STDINT_H__ not defined"
#endif

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