[clang] 9908ee5 - [SystemZ][z/OS] Add test of zero length bitfield type size larger than target zero length bitfield boundary

Abhina Sreeskantharajan via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 7 08:34:22 PDT 2020


Author: Fanbo Meng
Date: 2020-10-07T11:34:13-04:00
New Revision: 9908ee5670596db4fdc2bd7ea7c3071c0e02a784

URL: https://github.com/llvm/llvm-project/commit/9908ee5670596db4fdc2bd7ea7c3071c0e02a784
DIFF: https://github.com/llvm/llvm-project/commit/9908ee5670596db4fdc2bd7ea7c3071c0e02a784.diff

LOG: [SystemZ][z/OS] Add test of zero length bitfield type size larger than target zero length bitfield boundary

Reviewed By: hubert.reinterpretcast

Differential Revision: https://reviews.llvm.org/D88963

Added: 
    

Modified: 
    clang/test/CodeGen/zos-alignment.c

Removed: 
    


################################################################################
diff  --git a/clang/test/CodeGen/zos-alignment.c b/clang/test/CodeGen/zos-alignment.c
index 9d7bfe8923d0..4b572fcac5a9 100644
--- a/clang/test/CodeGen/zos-alignment.c
+++ b/clang/test/CodeGen/zos-alignment.c
@@ -90,6 +90,17 @@ struct s10 {
 // CHECK-NEXT:         0 |   unsigned int a
 // CHECK-NEXT:           | [sizeof=16, align=16]
 
+struct s11 {
+  char a;
+  long :0;
+  char b;
+} S11;
+// CHECK:              0 | struct s11
+// CHECK-NEXT:         0 |   char a
+// CHECK-NEXT:       8:- |   long
+// CHECK-NEXT:         8 |   char b
+// CHECK-NEXT:           | [sizeof=16, align=8]
+
 union u0 {
   unsigned short     d1 __attribute__((packed));
   int                d2:10;


        


More information about the cfe-commits mailing list