[PATCH] D88963: [SystemZ][z/OS] Add test of zero length bitfield type larger than zero length bitfield boundary
Fanbo Meng via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 7 06:19:04 PDT 2020
fanbo-meng created this revision.
fanbo-meng added reviewers: abhina.sreeskantharajan, hubert.reinterpretcast.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
fanbo-meng requested review of this revision.
Repository:
rG LLVM Github Monorepo
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.296654.patch
Type: text/x-patch
Size: 650 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201007/7021610f/attachment-0001.bin>
More information about the cfe-commits
mailing list