Work around clang's ignoring __attribute ( align(16) ) in this test case.

llvm-svn: 204207
This commit is contained in:
Jim Ingham 2014-03-19 00:50:08 +00:00
parent 8e522094b2
commit 39771db637
1 changed files with 6 additions and 1 deletions

View File

@ -152,7 +152,12 @@ class BitfieldsTestCase(TestBase):
self.DebugSBValue(bits)
self.assertTrue(bits.GetTypeName() == 'Bits', "bits.GetTypeName() == 'Bits'");
self.assertTrue(bits.GetNumChildren() == 10, "bits.GetNumChildren() == 10");
self.assertTrue(bits.GetByteSize() == 32, "bits.GetByteSize() == 32");
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");
# 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