xref: /aosp_15_r20/external/clang/test/CXX/class/class.union/class.union.anon/p4.cpp (revision 67e74705e28f6214e480b399dd47ea732279e315)
1 // RUN: %clang_cc1 -std=c++11 -verify %s
2 
3 union U {
4   int x = 0; // expected-note {{previous initialization is here}}
5   union {};
6   union {
7     int z;
8     int y = 1; // expected-error {{initializing multiple members of union}}
9   };
10 };
11