Fix erroneous test; was failing on darwin-ppc32. Fixes PR18469.

llvm-svn: 199542
This commit is contained in:
Marshall Clow 2014-01-18 03:41:54 +00:00
parent 9aafa898f9
commit 7132122196
1 changed files with 4 additions and 0 deletions

View File

@ -38,6 +38,10 @@ int main()
test_alignment_of<char[3], 1>();
test_alignment_of<int, 4>();
test_alignment_of<double, 8>();
#if (defined(__ppc__) && !defined(__ppc64__))
test_alignment_of<bool, 4>(); // 32-bit PPC has four byte bool
#else
test_alignment_of<bool, 1>();
#endif
test_alignment_of<unsigned, 4>();
}