diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-03-29 14:42:08 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-03-29 14:42:08 +0000 |
commit | 0b4c9b5834a0a5520d2cd32227a53cf7f73fedca (patch) | |
tree | a942a1789d530f9f7f3c8a806a5a0a9efbc5817e /test/SemaCXX/class-layout.cpp | |
parent | 67d568aaeba023e42ca74da3dca18e161664f567 (diff) |
Support __attribute__((packed)) (along with other attributes) at the
end of a struct/class/union in C++, from Justin Bogner!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@99811 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/class-layout.cpp')
-rw-r--r-- | test/SemaCXX/class-layout.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/SemaCXX/class-layout.cpp b/test/SemaCXX/class-layout.cpp index 2b8d1d3210..f3c75f4b27 100644 --- a/test/SemaCXX/class-layout.cpp +++ b/test/SemaCXX/class-layout.cpp @@ -48,6 +48,13 @@ struct H : G { }; SA(6, sizeof(H) == 1); +struct I { + char b; + int a; +} __attribute__((packed)); + +SA(6_1, sizeof(I) == 5); + // PR5580 namespace PR5580 { |