aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c23-float-13.c
blob: 9cfd7f0592ecb747b48571965841f61a3b242da7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* Test __STDC_VERSION_FLOAT_H__ in C23.  */
/* { dg-do preprocess } */
/* { dg-options "-std=c23 -pedantic-errors" } */

#include <float.h>

#ifndef __STDC_VERSION_FLOAT_H__
#error "__STDC_VERSION_FLOAT_H__ not defined"
#endif

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