(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
analyzer/
named-constants-via-macros-3.c
       1  #include "analyzer-decls.h"
       2  
       3  /* Various constants used by the fd state machine, as macros
       4     that can't be handled.  */
       5  
       6  #define O_RDONLY  (1 << 0)
       7  #define O_WRONLY  (1 << 1)
       8  #define O_ACCMODE (O_RDONLY | O_WRONLY)
       9  
      10  void test_sm_fd_constants (void)
      11  {
      12    __analyzer_dump_named_constant ("O_ACCMODE"); /* { dg-warning "named constant 'O_ACCMODE' has unknown value" } */
      13    __analyzer_dump_named_constant ("O_RDONLY"); /* { dg-warning "named constant 'O_RDONLY' has unknown value" } */
      14    __analyzer_dump_named_constant ("O_WRONLY"); /* { dg-warning "named constant 'O_WRONLY' has unknown value" } */
      15  }