Add __builtion_unreachable to vector::size(), vector::capacity()
[official-gcc.git] / gcc / testsuite / c-c++-common / analyzer / named-constants-via-macros-traditional.c
blob64acaad6aa0add87d319d427b110fc8fbbd1c989
1 /* { dg-additional-options "-traditional-cpp" } */
3 #include "analyzer-decls.h"
5 /* Various constants used by the fd state machine. */
7 #define O_ACCMODE 42
8 #define O_RDONLY 0x1
9 #define O_WRONLY 010
11 void test_sm_fd_constants (void)
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" } */