mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-30 06:40:53 +00:00
Less incorrect handling of zero-length bitfields. Radars 7992077
and 8093043.
llvm-svn: 106611
This commit is contained in:
parent
0c4230b33c
commit
bf77774e2f
20
test/FrontendC++/2010-06-22-BitfieldInit.cpp
Normal file
20
test/FrontendC++/2010-06-22-BitfieldInit.cpp
Normal 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; }
|
5
test/FrontendC++/2010-06-22-ZeroBitfield.cpp
Normal file
5
test/FrontendC++/2010-06-22-ZeroBitfield.cpp
Normal 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(); }
|
Loading…
Reference in New Issue
Block a user