summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/test/lang/c/bitfields/TestBitfields.py7
-rw-r--r--lldb/test/lang/c/bitfields/main.c2
2 files changed, 2 insertions, 7 deletions
diff --git a/lldb/test/lang/c/bitfields/TestBitfields.py b/lldb/test/lang/c/bitfields/TestBitfields.py
index 2597d6af7ac..15d33057abd 100644
--- a/lldb/test/lang/c/bitfields/TestBitfields.py
+++ b/lldb/test/lang/c/bitfields/TestBitfields.py
@@ -35,7 +35,6 @@ class BitfieldsTestCase(TestBase):
@python_api_test
@dwarf_test
@skipIfWindows # BitFields exhibit crashes in record layout on Windows (http://llvm.org/pr21800)
- @expectedFailureGcc # GCC (4.6/4.7) generates incorrect code with unnamed bitfields.
def test_with_dwarf_and_python_api(self):
"""Use Python APIs to inspect a bitfields variable."""
self.buildDwarf()
@@ -155,11 +154,7 @@ class BitfieldsTestCase(TestBase):
self.assertTrue(bits.GetTypeName() == 'Bits', "bits.GetTypeName() == 'Bits'");
self.assertTrue(bits.GetNumChildren() == 10, "bits.GetNumChildren() == 10");
test_compiler = self.getCompiler()
- if "gcc" in test_compiler:
- # Clang ignores the align attribute, so this structure isn't padded out to
- # 32 bytes there as the test author intended. Suppress this test for clang
- # till somebody has a chance to go rewrite the test source to be this big portably.
- self.assertTrue(bits.GetByteSize() == 32, "bits.GetByteSize() == 32");
+ self.assertTrue(bits.GetByteSize() == 32, "bits.GetByteSize() == 32");
# Notice the pattern of int(b1.GetValue(), 0). We pass a base of 0
# so that the proper radix is determined based on the contents of the
diff --git a/lldb/test/lang/c/bitfields/main.c b/lldb/test/lang/c/bitfields/main.c
index 951dd0e5c3a..26c0176d759 100644
--- a/lldb/test/lang/c/bitfields/main.c
+++ b/lldb/test/lang/c/bitfields/main.c
@@ -18,7 +18,7 @@ int main (int argc, char const *argv[])
: 2, // Unnamed bitfield
b3 : 3,
: 2, // Unnamed bitfield (this will get removed)
- b4 __attribute__ ((align(16))),
+ b4 __attribute__ ((aligned(16))),
b5 : 5,
b6 : 6,
b7 : 7,
OpenPOWER on IntegriCloud