[clang] [CIR][NFC] Fix the mms-bitfields test file (PR #172060)

Amr Hesham via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 12 10:20:34 PST 2025


https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/172060

Fix the args in the mms-bitfields test file to be aligned with the same test in classical codegen (clang/test/CodeGen/mms-bitfields.c). After #71148 is merged

>From dc8075db80a207e779a0d8c6715ec0dcdc7062fe Mon Sep 17 00:00:00 2001
From: Amr Hesham <amr96 at programmer.net>
Date: Fri, 12 Dec 2025 19:18:43 +0100
Subject: [PATCH] [CIR][NFC] Fix the mms-bitfields test file

---
 clang/test/CIR/CodeGen/mms-bitfields.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/clang/test/CIR/CodeGen/mms-bitfields.c b/clang/test/CIR/CodeGen/mms-bitfields.c
index 698034aadb100..2b8c533c408e7 100644
--- a/clang/test/CIR/CodeGen/mms-bitfields.c
+++ b/clang/test/CIR/CodeGen/mms-bitfields.c
@@ -1,8 +1,8 @@
-// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -mms-bitfields -fclangir -emit-cir %s -o %t.cir
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fms-layout-compatibility=microsoft -fclangir -emit-cir %s -o %t.cir
 // RUN: FileCheck --input-file=%t.cir %s --check-prefix=CIR
-// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -mms-bitfields -fclangir -emit-llvm %s -o %t-cir.ll
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fms-layout-compatibility=microsoft -fclangir -emit-llvm %s -o %t-cir.ll
 // RUN: FileCheck --input-file=%t-cir.ll %s --check-prefix=LLVM
-// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -mms-bitfields -emit-llvm %s -o %t.ll
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fms-layout-compatibility=microsoft -emit-llvm %s -o %t.ll
 // RUN: FileCheck --input-file=%t.ll %s --check-prefix=OGCG
 
 struct s1 {



More information about the cfe-commits mailing list