diff options
author | Anders Carlsson <andersca@mac.com> | 2009-09-26 01:09:35 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-09-26 01:09:35 +0000 |
commit | 7e41038723bf77132674f55b12f60e24e5473b33 (patch) | |
tree | ee86b371082a148a0e4911553f862cd6cacdb7ce /test/SemaCXX/empty-class-layout.cpp | |
parent | 4f5bf3b095f3454eb0da2de9f44639f8fa9948fb (diff) | |
download | clang-7e41038723bf77132674f55b12f60e24e5473b33.tar.gz |
Use NextOffset when laying out a field.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82828 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/empty-class-layout.cpp')
-rw-r--r-- | test/SemaCXX/empty-class-layout.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/SemaCXX/empty-class-layout.cpp b/test/SemaCXX/empty-class-layout.cpp index ce6506553d..e4e62aa369 100644 --- a/test/SemaCXX/empty-class-layout.cpp +++ b/test/SemaCXX/empty-class-layout.cpp @@ -57,3 +57,8 @@ SA(9, sizeof(S5) == 2); struct S6 : S5 { }; SA(10, sizeof(S6) == 2); + +struct S7 : Empty { + void *v; +}; +SA(11, sizeof(S7) == 8); |