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