| 1 |
#include "analyzer-decls.h" |
| 2 |
|
| 3 |
enum __foo { |
| 4 |
O_ACCMODE = 1, |
| 5 |
|
| 6 |
#define O_ACCMODE O_ACCMODE |
| 7 |
}; |
| 8 |
|
| 9 |
void test_sm_fd_constants (void) |
| 10 |
{ |
| 11 |
__analyzer_dump_named_constant ("O_ACCMODE"); /* { dg-warning "named constant 'O_ACCMODE' has value '1'" } */ |
| 12 |
} |