Fix invalid TestBitfields case (thanks Filipe!), and xfail one case due to GCC compil...
authorDaniel Malea <daniel.malea@intel.com>
Wed, 20 Feb 2013 21:11:20 +0000 (21:11 +0000)
committerDaniel Malea <daniel.malea@intel.com>
Wed, 20 Feb 2013 21:11:20 +0000 (21:11 +0000)
commitc6a70063cb93d536160c3c48ecea003ebef0f52a
tree73872e7592d8a0ccdc05baf459b01a8e1cd5a434
parent7932c232bd2c0170409392ffe61222ab3605c923
Fix invalid TestBitfields case (thanks Filipe!), and xfail one case due to GCC compiler bug.

Turns out unnamed bit fields should not be accessed ever in C (C99 section 4.7.8) or C++
(C++11 section 9.6).

Unrelated to the above, this commit marks TestBitfields as expected-to-fail with GCC as 4.7
has problems with padding... the size of the struct with a uint32_t member is reported as 12
when GCC is used. Clang emits correct code.

Parts of this patch prepared by Filipe Cabecinhas!

llvm-svn: 175666
lldb/test/lang/c/bitfields/TestBitfields.py