[libcxx] r199542 - Fix erroneous test; was failing on darwin-ppc32. Fixes PR18469.

Marshall Clow mclow.lists at gmail.com
Fri Jan 17 19:41:54 PST 2014


Author: marshall
Date: Fri Jan 17 21:41:54 2014
New Revision: 199542

URL: http://llvm.org/viewvc/llvm-project?rev=199542&view=rev
Log:
Fix erroneous test; was failing on darwin-ppc32. Fixes PR18469.

Modified:
    libcxx/trunk/test/utilities/meta/meta.unary.prop.query/alignment_of.pass.cpp

Modified: libcxx/trunk/test/utilities/meta/meta.unary.prop.query/alignment_of.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/utilities/meta/meta.unary.prop.query/alignment_of.pass.cpp?rev=199542&r1=199541&r2=199542&view=diff
==============================================================================
--- libcxx/trunk/test/utilities/meta/meta.unary.prop.query/alignment_of.pass.cpp (original)
+++ libcxx/trunk/test/utilities/meta/meta.unary.prop.query/alignment_of.pass.cpp Fri Jan 17 21:41:54 2014
@@ -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>();
 }





More information about the cfe-commits mailing list