Debian Codegraph @

gcc/testsuite/c-c++-common/analyzer/named-constants-via-macros-traditional.c

raw
1 /* { dg-additional-options "-traditional-cpp" } */
2
3 #include "analyzer-decls.h"
4
5 /* Various constants used by the fd state machine. */
6
7 #define O_ACCMODE 42
8 #define O_RDONLY 0x1
9 #define O_WRONLY 010
10
11 void test_sm_fd_constants (void)
12 {
13 __analyzer_dump_named_constant ("O_ACCMODE"); /* { dg-warning "named constant 'O_ACCMODE' has unknown value" } */
14 __analyzer_dump_named_constant ("O_RDONLY"); /* { dg-warning "named constant 'O_RDONLY' has unknown value" } */
15 __analyzer_dump_named_constant ("O_WRONLY"); /* { dg-warning "named constant 'O_WRONLY' has unknown value" } */
16 }