]> granicus.if.org Git - clang/commit
For gcc compatibility, size of a class which is zero
authorFariborz Jahanian <fjahanian@apple.com>
Wed, 2 Feb 2011 19:36:18 +0000 (19:36 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Wed, 2 Feb 2011 19:36:18 +0000 (19:36 +0000)
commitadf082e829eb71871b6043009888df3b79055dba
tree747ab604ad6e2cca0fd6d5c5b18d08e202390cee
parent6159d0fe2d40708b5a3caab91c8292253894ebf3
For gcc compatibility, size of a class which is zero
but has non-empty data fields, such as array of zero length,
remains zero.
// rdar://8945175

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124741 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/RecordLayoutBuilder.cpp
test/CodeGenCXX/non-empty-class-size-zero.cpp [new file with mode: 0644]