xref: /minix3/external/bsd/llvm/dist/clang/test/SemaCXX/anonymous-union-cxx11.cpp (revision eda6f5931d42c77e1480347b1fc3eef2f8d33806)
1 // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify -pedantic %s
2 // expected-no-diagnostics
3 
4 namespace PR12866 {
5   struct bar {
6     union {
7       int member;
8     };
9   };
10 
11   void foo( void ) {
12     (void)sizeof(bar::member);
13   }
14 }
15