PR tree-optimization/83369 - Missing diagnostics during inlining
[official-gcc.git] / gcc / testsuite / gcc.dg / unused-variable-3.c
blob6aca95813e17ac7a22be36882d2deaac5d5b07fc
1 /* { dg-do compile } */
2 /* { dg-options "-Wunused-variable" } */
4 static const int cmain = 42; /* { dg-warning "defined but not used" } */
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;