vim

Fork of vim, an acceptable text editor
git clone git://git.laack.co/vim.git
Log | Files | Refs | README | LICENSE

c_preprocessor_error.c (375B)


      1 // C preprocessor - diagnostic directives
      2 
      3 // Source: https://en.cppreference.com/w/c/preprocessor/error
      4 
      5 #if __STDC__ != 1
      6 #  error "Not a standard compliant compiler"
      7 #endif
      8 
      9 #if __STDC_VERSION__ >= 202311L
     10 #  warning "Using #warning as a standard feature"
     11 #endif
     12 
     13 #include <stdio.h>
     14 
     15 int main (void)
     16 {
     17     printf("The compiler used conforms to the ISO C Standard !!");
     18 }
     19