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 | c48a10d65259acee71e1476047958d9a3f7ca8f1 (patch) | |
tree | 3efa9b1510f46afd773cb07e1e77cf1091d5307c /clang/test/SemaCXX/class-layout.cpp | |
parent | cb6207f72326e4ae1da67b4bb486c252477cbaf0 (diff) | |
download | bcm5719-llvm-c48a10d65259acee71e1476047958d9a3f7ca8f1.tar.gz bcm5719-llvm-c48a10d65259acee71e1476047958d9a3f7ca8f1.zip |
Support __attribute__((packed)) (along with other attributes) at the
end of a struct/class/union in C++, from Justin Bogner!
llvm-svn: 99811
Diffstat (limited to 'clang/test/SemaCXX/class-layout.cpp')
-rw-r--r-- | clang/test/SemaCXX/class-layout.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/class-layout.cpp b/clang/test/SemaCXX/class-layout.cpp index 2b8d1d3210b..f3c75f4b27d 100644 --- a/clang/test/SemaCXX/class-layout.cpp +++ b/clang/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 { |