diff options
author | Stuart Hastings <stuart@apple.com> | 2010-06-23 00:31:14 +0000 |
---|---|---|
committer | Stuart Hastings <stuart@apple.com> | 2010-06-23 00:31:14 +0000 |
commit | 0ac9a6f9e1e7d20049f72e84ec33080260fe1c90 (patch) | |
tree | ece966efb4e9548cee2ca448bc88fd27549311c6 /test/FrontendC++/2010-06-22-ZeroBitfield.cpp | |
parent | 1008d3500002a64fab0a956ad681118d7af8143a (diff) |
Less incorrect handling of zero-length bitfields. Radars 7992077 and 8093043.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106611 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FrontendC++/2010-06-22-ZeroBitfield.cpp')
-rw-r--r-- | test/FrontendC++/2010-06-22-ZeroBitfield.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/FrontendC++/2010-06-22-ZeroBitfield.cpp b/test/FrontendC++/2010-06-22-ZeroBitfield.cpp new file mode 100644 index 0000000000..c979f8d9b9 --- /dev/null +++ b/test/FrontendC++/2010-06-22-ZeroBitfield.cpp @@ -0,0 +1,5 @@ +// RUN: %llvmgxx -g -c %s +struct s8_0 { unsigned : 0; }; +struct s8_1 { double x; }; +struct s8 { s8_0 a; s8_1 b; }; +s8 f8() { return s8(); } |