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
This commit is contained in:
Stuart Hastings 2010-06-23 00:31:14 +00:00
parent 1008d35000
commit 0ac9a6f9e1
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,20 @@
// RUN: %llvmgxx -g -c %s
struct TEST2
{
int subid:32;
int :0;
};
typedef struct _TEST3
{
TEST2 foo;
TEST2 foo2;
} TEST3;
TEST3 test =
{
{0},
{0}
};
int main() { return 0; }

View File

@ -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(); }