| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-Wunused-variable" } */ |
| 3 |
|
| 4 |
static const int cmain = 42; /* { dg-warning "defined but not used" } */ |
| 5 |
|
| 6 |
/* Don't warn for unused static consts in headers, |
| 7 |
unless -Wunused-const-variable=2. */ |
| 8 |
#line 1 "header.h" |
| 9 |
static const int cheader = 42; |