(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
c2x-stdint-1.c
       1  /* Test __STDC_VERSION_STDINT_H__ in C2x.  */
       2  /* { dg-do preprocess } */
       3  /* { dg-options "-std=c2x -pedantic-errors -ffreestanding" } */
       4  
       5  #include <stdint.h>
       6  
       7  #ifndef __STDC_VERSION_STDINT_H__
       8  #error "__STDC_VERSION_STDINT_H__ not defined"
       9  #endif
      10  
      11  #if __STDC_VERSION_STDINT_H__ != 202311L
      12  #error "bad value of __STDC_VERSION_STDINT_H__"
      13  #endif