[clang] [Frontend][Sema] Add CC1-only -fms-anonymous-structs to enable Microsoft anonymous struct/union feature (PR #176551)

Riyaz Ahmad via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 21 11:16:35 PST 2026


================
@@ -0,0 +1,81 @@
+// RUN: %clang_cc1 -triple i686-windows %s -fsyntax-only -Wno-unused-value -Wno-pointer-to-int-cast -Wmicrosoft -verify -fms-anonymous-structs
+// RUN: %clang_cc1 -triple powerpc-ibm-aix %s -fsyntax-only -Wno-unused-value -Wno-pointer-to-int-cast -Wmicrosoft -verify -fms-anonymous-structs
----------------
riyaz86a wrote:

> Add a RUN line that shows that explicitly using the negative form disables the extension when the extension is otherwise enabled by some other mechanism.
Regarding this test, As there is negative form of this option, Hence this test is not covered.

https://github.com/llvm/llvm-project/pull/176551


More information about the cfe-commits mailing list