// Expect no warnings in C11 mode: // RUN: %clang_cc1 -fsyntax-only -pedantic -Werror -std=c11 %s structs{ inta; struct{// expected-warning{{anonymous structs are a C11 extension}} intb; }; }; structt{ inta; union{// expected-warning{{anonymous unions are a C11 extension}} ...
Omitting the name on the union means that the members of the union are accessible without having to say the name of the union (which is a good thing, because that union has no name). Nameless unions are available in C and C++,¹ and that’s what is happening in theDEVMODEstructure....