aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-07-28 17:14:18 +0000
committerAnders Carlsson <andersca@mac.com>2009-07-28 17:14:18 +0000
commit227aad58cc46c15dfc3fee2244d4a56d8c003d8f (patch)
tree42754f8c56e0153818af3a85f6a7bf7996dc94cd
parent8bda2e66fa8050a6b3eef745628873eef4b683d8 (diff)
Add two more tests.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77330 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/SemaCXX/class-layout.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/SemaCXX/class-layout.cpp b/test/SemaCXX/class-layout.cpp
index 0cb5a6d8ff..890d98bba5 100644
--- a/test/SemaCXX/class-layout.cpp
+++ b/test/SemaCXX/class-layout.cpp
@@ -29,3 +29,16 @@ struct D : C {
};
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);