]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - test/SemaCXX/anonymous-union-cxx11.cpp
Vendor import of clang trunk r161861:
[FreeBSD/FreeBSD.git] / test / SemaCXX / anonymous-union-cxx11.cpp
1 // RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify -pedantic %s
2
3 namespace PR12866 {
4   struct bar {
5     union {
6       int member;
7     };
8   };
9
10   void foo( void ) {
11     (void)sizeof(bar::member);
12   }
13 }