summaryrefslogtreecommitdiff
path: root/cppu
diff options
context:
space:
mode:
Diffstat (limited to 'cppu')
-rw-r--r--cppu/qa/cppumaker/test_cppumaker.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/cppu/qa/cppumaker/test_cppumaker.cxx b/cppu/qa/cppumaker/test_cppumaker.cxx
index 1b8efda8a972..ca81355210bb 100644
--- a/cppu/qa/cppumaker/test_cppumaker.cxx
+++ b/cppu/qa/cppumaker/test_cppumaker.cxx
@@ -446,13 +446,14 @@ void Test::testBigStruct() {
//This is a very platform specific test.
#if defined __GNUC__ // see CPPU_GCC3_ALIGN
#if defined(LINUX) && (defined (X86_64) || defined(X86) || defined(PPC))
- CPPUNIT_ASSERT_EQUAL(
+ static_assert(
+ sizeof (test::codemaker::cppumaker::AlignmentDerivedStruct) ==
#if defined X86_64 || defined PPC
- static_cast< std::size_t >(24),
+ 24
#else
- static_cast< std::size_t >(16),
+ 16
#endif
- sizeof (test::codemaker::cppumaker::AlignmentDerivedStruct));
+ );
#endif
#endif