Clang Project

clang_source_code/test/SemaCXX/Inputs/warn-unused-variables.h
1// Verify that we don't warn about variables of internal-linkage type in
2// headers, as the use may be in another TU.
3namespace PR15558 {
4namespace {
5class A {};
6}
7
8class B {
9  static A a;
10  static A b;
11  static const int x = sizeof(b);
12};
13}
14