================
@@ -0,0 +1,18 @@
+// RUN: %clang_cc1 -emit-llvm-only -triple x86_64-pc-linux-gnu %s
+// RUN: %clang_cc1 -emit-llvm-only -triple x86_64-pc-linux-gnu 
-fms-layout-compatibility=microsoft %s
+// RUN: %clang_cc1 -emit-llvm-only -triple x86_64-pc-windows-gnu %s
+// RUN: %clang_cc1 -emit-llvm-only -triple x86_64-pc-windows-gnu 
-fms-layout-compatibility=itanium %s
+
+struct {
+    int a : 24;
+    char b : 8;
+} __attribute__((gcc_struct)) t1;
+static int a1[(sizeof(t1) == 4) - 1];
----------------
efriedma-quic wrote:

static_assert

https://github.com/llvm/llvm-project/pull/71148
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to