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

Abhina Sree via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 7 08:34:24 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG9908ee567059: [SystemZ][z/OS] Add test of zero length bitfield type size larger than target… (authored by fanbo-meng, committed by abhina.sreeskantharajan).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D88963/new/

https://reviews.llvm.org/D88963

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


Index: clang/test/CodeGen/zos-alignment.c
===================================================================
--- clang/test/CodeGen/zos-alignment.c
+++ clang/test/CodeGen/zos-alignment.c
@@ -90,6 +90,17 @@
 // 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;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88963.296693.patch
Type: text/x-patch
Size: 650 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201007/c19fc938/attachment.bin>


More information about the cfe-commits mailing list