commit | 227aad58cc46c15dfc3fee2244d4a56d8c003d8f | [log] [tgz] |
---|---|---|
author | Anders Carlsson <andersca@mac.com> | Tue Jul 28 17:14:18 2009 +0000 |
committer | Anders Carlsson <andersca@mac.com> | Tue Jul 28 17:14:18 2009 +0000 |
tree | 42754f8c56e0153818af3a85f6a7bf7996dc94cd | |
parent | 8bda2e66fa8050a6b3eef745628873eef4b683d8 [diff] [blame] |
Add two more tests. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77330 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/SemaCXX/class-layout.cpp b/test/SemaCXX/class-layout.cpp index 0cb5a6d..890d98b 100644 --- a/test/SemaCXX/class-layout.cpp +++ b/test/SemaCXX/class-layout.cpp
@@ -29,3 +29,16 @@ }; SA(3, sizeof(D) == 8); + +struct __attribute__((packed)) E { + char b; + int a; +}; + +SA(4, sizeof(E) == 5); + +struct __attribute__((packed)) F : E { + char d; +}; + +SA(5, sizeof(F) == 6);